更新时间:2023-03-15 10:40:34
Delete the specified video through this interface.
Note: This interface will delete the source video file, transcoding file, cover, screenshot, trial-watch video file, whiteboard and chat record corresponding to the video. Please be aware of this before deletion.
Request method | POST/GET |
---|---|
Interface Address | https://api.cloudv.haplat.net/vod/videoManage/deleteVideo |
If token is needed | The verification token is needed |
Parameter | Type | Required | Remarks |
---|---|---|---|
videoId | string | Yes | The id of the video to be deleted. |
validateOccupy | int | no | 0 no check, 1 check, default check |
For common return results, please refer to the Response.
Input example
curl -X POST
http://api.cloudv.haplat.net/vod/videoManage/deleteVideo
-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'
The following error codes are related to the business logic of the interface, the common error code can be found at Common Error Codes.
Error code | Description |
---|---|
400 | Resources are occupied |
1502 | Video does not exist! |
1522 | You have no permission to delete the video |
1569 | Video operation is forbidden |