Skip to main contentIBM Video Streaming Developers

Sharing control

Set sharing control

Enable or disable the sharing feature for the viewer.

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

Parameters

The parameters for the PUT request:

PARAMETERTYPEIMPORTANCEDESCRIPTION
sharingbooleanREQUIREDEnable or disable sharing

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 Requestinvalid_sharingThe specified sharing is invalid or unsupported
401 UnauthorizedThe provided access token is missing, revoked, expired or malformed
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