Delete the uploaded material file by calling deleteVideo.
Name | Description |
---|---|
*idString | ID of the material that you want to delete |
validateOccupyString | Occupied check, default check
0 uncheck
1 check |
Name | Description |
---|---|
codeInteger | Result status code, 200 indicates success |
messageString | Return message |
dataString | Return data |
Error code(code) | Description(message) | HTTP status | Semantic |
---|---|---|---|
1301 | User has no permission | 200 | User has no permission |
1004 | The parameter is incorrect. Please ensure that all required fields are filled in | 200 | The parameter is incorrect. Please ensure that all required fields are filled in |
1000 | The material id cannot be empty | 200 | The material id cannot be empty |
1004 | The material id does not exist | 200 | The material id does not exist |
1004 | Parameter error | 200 | Parameter error |
400 | Resource occupied | 200 | Resource occupied |
#!/bin/bash username='example_username' apiKey='example_apiKey' date=`env LANG="en_US.UTF-8" date -u "+%a, %d %b %Y %H:%M:%S GMT"` password=`echo -en "$date" | openssl dgst -sha1 -hmac $apiKey -binary | openssl enc -base64` curl -i --url "https://api.cdnetworks.com/vod/material/deleteMaterial" \ -X "POST" \ -u "$username:$password" \ -H "Date: $date" \ -H "x-cnc-auth-method: BASIC" \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ -d '{ "id":"XXXXXXXXXXX", "validateOccupy":"1" }'
{ "code": 200, "data": "", "message": "Operation succeeded" }