Skip to main contentIBM Video Streaming Developers

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:

PARAMETERTYPEIMPORTANCEDESCRIPTION
timestampintegerREQUIREDTimestamp of the visibility change. Must be in the future.
actionstringOPTIONALAccepted 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 CODEERROR VALUEERROR CONDITIONS
400 Bad Requestbad_requestInvalid timestamp
401 Unauthorizedinvalid_tokenThe provided access token is missing, revoked, expired or malformed
403 Forbiddenlack_of_ownershipThe API user is not allowed to manage the given video
404 Not Foundnot_foundVideo was not found
503 Service UnavailableThere 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 CODEERROR VALUEERROR CONDITIONS
401 UnauthorizedThe provided access token is missing, revoked, expired or malformed
404 Not Foundnot_foundVideo was not found
503 Service UnavailableThere is a temporary error on the server which makes it impossible to serve the request