Complete an AssetUpload after every required part's original bytes have uploaded successfully by HTTP PUT to its signed upload URL. Creating an upload or completing its preparation job does not transfer file contents. Each part's signed URL authorizes the PUT independently of the Dash bearer token and accepts the inclusive byte range returned for that part.
The request contains the asset ID and upload ID from the prepared upload, plus every uploaded part's partNumber and exact ETag response header, including any surrounding quotes, from its successful PUT. Completion requires every part to have uploaded successfully. The response's result.type indicates the outcome: FAILURE is an upload failure even when the HTTP status is 200.
Upload completion does not change an asset's lifecycle state. New assets remain STAGED. A separate postAssetLifecycleTransitionBatchJob can publish them with STAGED_TO_LIVE, subject to publishing permission, or submit them for approval with STAGED_TO_PENDING_APPROVAL. STAGED_TO_LIVE requires a BY_CRITERION selector; a selector combining asset IDs with LIFECYCLE_STATE = STAGED targets specific staged assets. getAssetLifecycleTransitionBatchJob reports the resulting lifecycle state.
The ID of the Asset the AssetUpload is for
The unique identifier for the AssetUpload to this Asset
- Productionhttps://api-v2.dash.app/asset-upload-completions
curl -i -X POST \
https://api-v2.dash.app/asset-upload-completions \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"uploadId": "5a2481e0-819f-4b46-a7e6-143f943345f2",
"assetId": "7af90a8b-7ccd-430f-a85d-e8614015bc47",
"parts": [
{
"partNumber": 1,
"eTag": "569726cc-2149-4167-abee-26a068fbda22"
},
{
"partNumber": 2,
"eTag": "a9398831-2221-4c1f-90e7-b467b926aa16"
},
{
"partNumber": 3,
"eTag": "820f3b61-3ac7-481c-a6e4-d6c5041683af"
}
]
}'{ "result": { "type": "SUCCESS" }, "permittedActions": [] }