Skip to content

Complete an asset file upload

Request

After an AssetUpload has been created and each part of the file data has been PUT to the relavant URL the eTag from each PUT must be sent to indicate the upload is complete.

Security
bearerToken
Bodyapplication/jsonrequired
assetIdstring

The ID of the Asset the AssetUpload is for

Example:"7af90a8b-7ccd-430f-a85d-e8614015bc47"
uploadIdstring

The unique identifier for the AssetUpload to this Asset

Example:"5a2481e0-819f-4b46-a7e6-143f943345f2"
partsArray of objects
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"
      }
    ]
  }'

Responses

Success

Bodyapplication/json
resultanyrequired
permittedActionsArray of objectsrequired
Response
{ "result": { "type": "SUCCESS" }, "permittedActions": [] }