Skip to main contentIBM Video Streaming Developers

Password protection

When password protection is enabled, viewers must enter a password to view live stream or on demand video content.

This feature is currently disabled in both the iOS and Android apps.

Get status of password protection

Check the password protection status of the channel.

GET https://api.video.ibm.com/channels/{channel_id}/locks/password.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 structure.

KEYTYPEDESCRIPTION
enabledbooleanPassword protection status

Error responses

Possible error responses:

HTTP RESPONSE CODEERROR VALUEERROR CONDITIONS
403 Forbiddenlack_of_ownershipThe 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

Set password and enable protection

Set the channel password and enable password protection.

PUT https://api.video.ibm.com/channels/{channel_id}/locks/password.json

Parameters

The parameters for the PUT request:

PARAMETERTYPEIMPORTANCEDESCRIPTION
passwordstringREQUIREDThe new channel password

Success response

Upon success, a response with HTTP status “201 Created” is returned.

Error responses

Possible error responses:

HTTP RESPONSE CODEERROR VALUEERROR CONDITIONS
400 Bad Requestinput_validation_errorThe given password is invalid.
403 Forbiddenlack_of_ownershipThe 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

Remove password protection

Remove the password and disable password protection on the channel.

DELETE https://api.video.ibm.com/channels/{channel_id}/locks/password.json

Parameters

This request has no parameters.

Success response

For this request an empty response is returned.

Error responses

Possible error responses:

HTTP RESPONSE CODEERROR VALUEERROR CONDITIONS
403 Forbiddenlack_of_ownershipThe 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