DeleteVideoByCategory

Update time: 2024-07-29 16:43:35

Delete video by category

  • Limit of request rate per user: 300/5min
  • Applicable Products: Cloud VoD
For API authentication details, please refer to: API Authentication Overview

Request

Body Params

NameDescription
*nodeIdInteger

Node id

notifyUrlString

Delete the result callback notification address

Response

Body Params

NameDescription
codeInteger

Result status code, 200 indicates success

messageString

Return message

dataList

Return data

taskIdLong

Delete task ID

Error code

Error code(code)Description(message)HTTP statusSemantic
24112000

Parameter error

400Parameter error
1000

The classification node ID does not exist, or has been deleted

200The classification node ID does not exist, or has been deleted
1000

The category node ID cannot be empty

2000The category node ID cannot be empty

Example

JSON
JSON
Request example
Copy Copy success
#!/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/deleteVideoByCategory" \
-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",
        "notifyUrl":"https://123.com"
}'
Response example
Copy Copy success
{
    "code": 200,
    "message": "Operation succeeded"
    "data": {
        "taskId":123
     }
}
Is the content of this document helpful to you?
Yes
I have suggestion
Submitted successfully! Thank you very much for your feedback, we will continue to strive to do better!