API Center

VideoEnable

Update time: 2023-04-21 18:13:07

Applicable Products

Cloud VoD

API Description

Call videoEnable to re-enable the disabled video.

Call frequency

Single user trigger frequency: 300/5min

We recommend you to use API Explorer

The API Explorer provides the ability of visual interface online call API, code examples generation, and API documents quickly search .Try it

Request parameter(s)

Body Params

NameDescription
*videoIdString
The video id to enable

Response parameter(s)

Body Params

NameDescription
codeInteger
Result status code, 200 indicates success
messageString
Return message
dataString
Return data

Error code

Error code(code)Description(message)HTTP statusSemantic
1502The video doesn't exist!200The video doesn't exist!
1503The videoId cannot be empty200The videoId cannot be empty
1504videoId contains special characters200videoId contains special characters
1509The video is already open200The video is already open
1510Video start failure200Video start failure
1511Video start failure200Video start failure
1525You have no permission to start the video200You have no permission to start the video

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/videoManage/videoEnable" \
-X "POST" \
-u "$username:$password" \
-H "Date: $date" \
-H "x-cnc-auth-method: BASIC" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
	"videoId":"XXXXXXXXXXX"
}'
Response example
Copy Copy success
{
    "code": 200,
    "data": "",
    "message": "操作成功"
}
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!