Skip to main content
Skip table of contents

Creating an STCU profile

Request

To create a new STCU profile, send a POST request to:

http://<host>:<port>/businessConfig/admin/v1/profiles

Headers

  • Content-Type: application/json

Mandatory fields

  • name
  • _id

Example

A request with this payload creates a new STCU profile:

CODE
{
    "name": "STCU_HLS_1",
    "type": "ShortTermCatchUp",
    "features": "hls",
    "id": "stcu_hls1",
    "timeShifting": {
        "shortTermCatchUpParameters": {
            "destinationDeviceId": "device_id_01"
        }
    }
}

Note that here:

  • name can be any string. Use a name that will make it easy for you to identify the profile.
  • type must be ShortTermCatchUp.
  • features specifies the encoding (usually hls or dash).
  • id can be any string, but it must be unique within profiles.
  • destinationDeviceId specifies the location where the generated asset will be located. In this case (where there is no separate physical asset), this forms part of the URL used to access the content.

Response

A successful request returns an HTTP 201 status. The response contains the profile ID.

An unsuccessful request returns an HTTP 400 status. 

Example

The payload of a response to a successful request looks like this:

CODE
{
  "id": "stcu_hls1"
}

See also 

For full details of this API, see the Business Configuration Manager (BCM) API documentation: core.

This API can be used to create any type of profile, not just an STCU profile. Most of the parameters listed in the API documentation are not relevant for an STCU profile..
JavaScript errors detected

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

If this problem persists, please contact our support.