Skip to main content
Skip table of contents

Creating channel lineups

Request

To create one or more channel lineups, send a POST request to:

https://<host>:<port>/metadata/content/v1/channelLineUps

Creating a channel lineup does not add any channels to the lineup.

To add channels to a channel lineup, see Creating channel lineup links.

Headers

  • Content-Type: application/json

Mandatory arguments

The body must contain a channelLineUps object that contains one or more blocks, each of which represents a channel lineup and that must contain the following:

  • Either:
    • id – the ID of the channel lineup, or
    • Both providerId and providerResourceId
  • name – the name of the channel lineup
  • description – the description of the channel lineup

Other arguments

None

Example

A POST request with this payload creates a single channel lineup:

CODE
{
   "channelLineUps": [{
      "description": "Sports channels",
      "providerId": "OPERATOR",
      "providerResourceId": "test03SHN",
      "name": "Sports"
   }]
}

Response

A successful request returns an HTTP 201 status. The response body contains the URI of the new channel lineup.

A bad request returns an HTTP 400 status.

See also

For full details of this API, see Content and Product Manager (CPM) API documentation: content v1.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.