Delete category
Name | Description |
---|---|
*nodeIdInteger | Node id |
Name | Description |
---|---|
codeInteger | Result status code, 200 indicates success |
messageString | Return message |
Error code(code) | Description(message) | HTTP status | Semantic |
---|---|---|---|
24112000 | Parameter error | 400 | Parameter error |
1000 | Tags are used by workflow templates and direct deletion is prohibited | 200 | Tags are used by workflow templates and direct deletion is prohibited |
1000 | The parent classification node ID does not exist or has been deleted | 200 | The parent classification node ID does not exist or has been deleted |
1000 | The category node ID cannot be empty | 200 | The category node ID cannot be empty |
#!/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/videoCategory/deleteCategory" \ -X "POST" \ -u "$username:$password" \ -H "Date: $date" \ -H "x-cnc-auth-method: BASIC" \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ -d '{ "nodeId": "id1" }'
{ "code": 200, "message": "Operation succeeded" }