Request
To update a cue point profile, send a PUT request to:
https://<host>:<port>/config/csCueProfiles/{id}
Headers
-
Authorization– Keycloak access token for a user with theoperatorRolerole (see Accessing operator APIs using Keycloak) -
Content-Type: application/json
Mandatory arguments
-
id(in URL) – the ID of the profile (itscsCueProfileId) -
csCueProfileEnabled(in body) – whether the profile is enabled (trueorfalse). Always include this field, even if you are not changing it. If you leave it out, the profile is disabled.
Other arguments
In the request body, include the other fields that you want to change. They are the same as when you create a profile – see Creating a cue point profile.
The fields that you include replace the existing values. If you include csCueList, it replaces the whole list of cue points.
You cannot change csCueProfileId.
Example
A request with this payload changes the recap in the profile to 90 seconds and removes the end credits cue point:
{
"csCueProfileEnabled": true,
"csCueList": [
{
"name": "recapEnd",
"type": "recap",
"description": "End of the recap of the previous episode",
"timeOffset": 90000
}
]
}
Response
A successful request returns an HTTP 200 status. The response body contains the ID of the profile.
An unauthorised request returns an HTTP 401 status – for example, if the access token is invalid or has expired.
A forbidden request returns an HTTP 403 status – for example, if the request has no access token, or the user does not have the operatorRole role.
If the profile does not exist, or the request tries to change csCueProfileId, the request returns an HTTP 500 status.
Changes to a profile apply to all the content that uses it.
See also
For full details of this API, see the config-manager API documentation.