Skip to main contentIBM Video Streaming Developers

Playlists on channel page

Get playlist settings

Check whether video playlists are enabled or disabled on the channel page.

GET https://api.video.ibm.com/channels/{channel_id}/settings/playlists.json

Parameters

This request has no parameters.

Success response

Upon success a response with HTTP status “200 OK” is returned with the following key-value structures.

KEYTYPEDESCRIPTION
successbooleanSuccess status of the request
is_enabledbooleanSetting of playlists for the channel page, if value is true, playlists are displayed.

Example of a success response:

{
"success": true,
"is_enabled": false
}

Error responses

Possible error responses:

HTTP RESPONSE CODEERROR VALUEERROR CONDITIONS
401 Unauthorizedinvalid_tokenThe provided access token is missing, revoked, expired or malformed
403 Permission Deniedpermission_deniedThe API user is not allowed to manage the given channel
404 Not Foundnot_foundChannel does not exist
503 Service UnavailableThere is a temporary error on the server which makes it impossible to serve the request

Modify playlist settings

Change visibility of playlists on your channel page.

PUT https://api.video.ibm.com/channels/{channel_id}/settings/playlists.json

Parameters

The parameters for the PUT request:

PARAMETERTYPEIMPORTANCEDESCRIPTION
valuebooleanREQUIREDSet true to enable or false to disable playlists on the given channel.

Success response

Upon success a response with HTTP status “200 OK” is returned with the following key-value pair.

KEYTYPEDESCRIPTION
successbooleanSuccess status of the request

Error responses

Possible error responses:

HTTP RESPONSE CODEERROR VALUEERROR CONDITIONS
400 Bad Requestbad_requestInvalid value was supplied
401 Unauthorizedinvalid_tokenThe provided access token is missing, revoked, expired or malformed
403 Permission Deniedpermission_deniedThe API user is not allowed to manage the given channel
404 Not Foundnot_foundChannel not found
503 Service UnavailableThere is a temporary error on the server which makes it impossible to serve the request