Skip to Content
Cancel a direct upload
put

Cancels a direct upload and marks it as cancelled. If a pending upload finishes after this request, no asset will be created. This request will only succeed if the upload is still in the waiting state.

curl https://api.mux.com/video/v1/uploads/${UPLOAD_ID}/cancel \  -X PUT \  -H "Content-Type: application/json" \  -u ${MUX_TOKEN_ID}:${MUX_TOKEN_SECRET}
Request path & query params
UPLOAD_ID
string

ID of the Upload

put
200
/video/v1/uploads/{UPLOAD_ID}/cancel
Response
(application/json)
{  "data": {  "timeout": 3600,  "status": "cancelled",  "new_asset_settings": {  "playback_policies": [  "public"  ],  "video_quality": "basic"  },  "id": "zd01Pe2bNpYhxbrwYABgFE01twZdtv4M00kts2i02GhbGjc",  "cors_origin": "https://example.com/"  } }