Schedule video visibility change
Set schedule
Set video visibility change scheduled in the future.
PUT https://api.video.ibm.com/videos/{video_id}/schedule.json
Parameters
The parameters for the PUT request:
PARAMETER | TYPE | IMPORTANCE | DESCRIPTION |
---|---|---|---|
timestamp | integer | REQUIRED | Timestamp of the visibility change. Must be in the future. |
action | string | OPTIONAL | Accepted values: publish or unpublish . Default value is unpublish . |
Success response
Upon success, a response with HTTP status “200 OK” is returned.
Error responses
Possible error responses:
HTTP RESPONSE CODE | ERROR VALUE | ERROR CONDITIONS |
---|---|---|
400 Bad Request | bad_request | Invalid timestamp |
401 Unauthorized | invalid_token | The provided access token is missing, revoked, expired or malformed |
403 Forbidden | lack_of_ownership | The API user is not allowed to manage the given video |
404 Not Found | not_found | Video was not found |
503 Service Unavailable | There is a temporary error on the server which makes it impossible to serve the request |
Remove schedule
Remove visibility change schedule from a video.
DELETE https://api.video.ibm.com/videos/{video_id}/schedule.json
Parameters
This request has no parameters.
Success response
Upon success a response with HTTP status “200 OK” is returned.
Error responses
Possible error responses:
HTTP RESPONSE CODE | ERROR VALUE | ERROR CONDITIONS |
---|---|---|
401 Unauthorized | The provided access token is missing, revoked, expired or malformed | |
404 Not Found | not_found | Video was not found |
503 Service Unavailable | There is a temporary error on the server which makes it impossible to serve the request |