Resume an upload
const url = 'https://api.ebitex.io/assets/management/v1/uploads/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/resume';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.ebitex.io/assets/management/v1/uploads/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/resume \ --header 'Authorization: Bearer <token>'For a large upload (a multipart plan), returns resumable: true, the plan with every part signed again for the time the upload has left, and acknowledged, the parts the bucket already holds with their eTags. Send only the parts not listed, then complete the upload with all the parts. A large video (a resumable Stream upload) returns a stream-tus plan with its upload url and an empty acknowledged: ask that URL for its Upload-Offset with a HEAD request (TUS 1.0.0) and send the rest from there. Anything else (a single-PUT upload, a small video sent in one request, a finished or expired upload) returns resumable: false; start a new upload.
Key: an Assets management key with assets.management.write.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”Responses
Section titled “ Responses ”OK
missing_api_key or invalid_api_key: no key was sent, or it is unknown, revoked or expired.
payment_required: the organization’s subscription needs attention.
scope_denied: the key is not an Assets management key. permission_denied: a read key was used for a write. app_not_available: Assets is not enabled for the organization. origin_denied or ip_denied: the key was used from an origin or address outside its restrictions.
too_many_failed_authentications: too many bad keys from this address; rate_limited: too many requests from the organization. Retry-After says how long to wait.