Activate Single Video

更新时间:2023-03-15 10:40:30

Description

Active an inactive video through this interface.

Request Description

Request method POST/GET
Interface Address https://api.cloudv.haplat.net/vod/videoManage/videoEnable
If token is needed The verification token is needed

Request Parameters

Parameter Type Required Remarks
videoId string Yes The id of the video to be enabled.

Response Parameters

For common response results, please refer to the Response.

Example

Input example

curl -X POST 
  http://api.cloudv.haplat.net/vod/videoManage/videoEnable 
  -H 'content-type: application/x-www-form-urlencoded; charset=utf-8' 
  -H "Host: api.cloudv.haplat.net" 
  -H "Authorization: your token" 
  -H "X-WS-Timestamp: current timestamp" 
  -H "X-WS-AccessKey: your AccessKey ID" 
  -d 'videoId=9B0F7BA8BCB9D056D4C24ADDBF821D10'

Error code

The following error codes are related to interface service logic, the generic error code can be found at Common Error Codes.

Error code Description
1502 Video does not exist!
1503 videoId canot be empty
1504 videoId contains special characters
1509 This video has already been enabled
1510 Failed to enable video
1511 Failed to enable video
1525 You have no permission to activate the video
本篇文档内容对您是否有帮助?
有帮助
我要反馈
提交成功!非常感谢您的反馈,我们会继续努力做到更好!