Refresh upload tickets
POST
/api/sdk/v1/contents/{contentId}/upload-ticketsIssues new presigned upload tickets for selected binary asset indexes.
A content that failed because its upload window closed
(failure.code of upload_expired) returns to pending once new
tickets are issued.
Authorization
bearerAuth AuthorizationBearer <token>
A personal access token created in the inklet portal. Server-side use only.
In: header
Path Parameters
contentId*string
Length
1 <= lengthRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/sdk/v1/contents/string/upload-tickets" \ -H "Content-Type: application/json" \ -d '{ "assetIndexes": [ 0 ] }'{ "content": { "id": "string", "title": "string", "state": "pending", "assets": [ { "assetIndex": 0, "type": "text", "text": "string", "url": "http://example.com", "filename": "string", "contentType": "string", "sizeBytes": 0, "uploadState": "pending" } ], "failedAssetIndexes": [ 0 ], "analysisIds": [ "string" ], "presentationIds": [ "string" ], "failure": { "code": "string", "message": "string", "stage": "string", "retryable": true, "assetIndex": 0 }, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }, "uploadTickets": [ { "assetIndex": 0, "url": "http://example.com", "fields": { "property1": "string", "property2": "string" }, "expiresAt": "2019-08-24T14:15:22Z" } ]}