Skip to main contentIBM Video Streaming Developers

Displaying metadata

Get the display settings of the custom metadata fields

Get information on how custom metadata is displayed on the channel page.

GET https://api.video.ibm.com/channels/{channel_id}/custom-metadata-display.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
metadata_displaysarrayContains the display settings of custom metadata fields (see below)

The array of data for metadata_displays contains the following key-value structures.

KEYTYPEDESCRIPTION
channel_idstringThe unique id of the channel
field_idstringThe unique id of the custom metadata field
is_linkbooleanValue is true if the field is a link to similar content

Error responses

Possible error responses:

HTTP RESPONSE CODEERROR VALUEERROR CONDITIONS
401 UnauthorizedThe provided access token is missing, revoked, expired or malformed
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 the display settings of a custom metadata field

Set how a custom metadata field is displayed on the channel page.

PUT https://api.video.ibm.com/channels/{channel_id}/custom-metadata-display/{field_id}.json

Parameters

The parameters for the PUT request:

PARAMETERTYPEIMPORTANCEDESCRIPTION
is_linkbooleanREQUIREDValue is true if the field is a link to similar content

Success response

Upon success, a response with HTTP status “204 No Content” is returned.

Error responses

HTTP RESPONSE CODEERROR VALUEERROR CONDITIONS
400 Bad Requestbad_requestA required parameter is missing
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_foundCustom metadata field not found
503 Service UnavailableThere is a temporary error on the server which makes it impossible to serve the request

Remove a metadata field from channel page

Delete the display settings of a custom metadata field and remove the field from the channel page.

DELETE https://api.video.ibm.com/channels/{channel_id}/custom-metadata-display/{field_id}.json

Parameters

This request has no parameters.

Success response

Upon success a response with HTTP status “200 OK” is returned.

Error responses

HTTP RESPONSE CODEERROR VALUEERROR CONDITIONS
401 UnauthorizedThe provided access token is missing, revoked, expired or malformed
402 Payment Requiredinvalid_requestThe user does not have the benefit
403 Forbiddenlack_of_ownershipThe API user is not allowed to manage the given channel
404 Not Foundnot_foundCustom metadata field not found
503 Service UnavailableThere is a temporary error on the server which makes it impossible to serve the request