Request
To get all cue point profiles, send a GET request to:
https://<host>:<port>/config/csCueProfiles
Headers
-
Authorization– Keycloak access token for a user with theoperatorRolerole (see Accessing operator APIs using Keycloak)
Mandatory arguments
None.
Other arguments
All these arguments are query parameters:
-
fq– a filter, in the form<field>:<operator>:<value>. You can combine filters withAND. You can filter on:-
csCueProfileIdandcsCueProfileName– using the operatorsequals,nequals,startswith,nstartswith,endswith,nendswith,contains, andncontains. (containsandncontainsare not case-sensitive.) -
csCueProfileEnabled– in the formcsCueProfileEnabled:trueorcsCueProfileEnabled:false
-
-
sort– the field to sort by:csCueProfileId,csCueProfileName, orcsCueProfileDesc. Add a-before the field name to sort in descending order. -
page– the page number (starting from 1) -
limit– the number of profiles per page (up to 1000)
If you use page or limit, you must specify both.
Example
This request gets the first 20 enabled profiles whose names contain "drama", sorted by name:
https://<host>:<port>/config/csCueProfiles?fq=csCueProfileName:contains:drama AND csCueProfileEnabled:true&sort=csCueProfileName&page=1&limit=20
Response
A successful request returns an HTTP 200 status. The response body contains the total number of matching profiles and the profiles themselves, for example:
{
"totalRecords": 1,
"csCueProfileSet": [
{
"csCueProfileId": "drama-60s-recap",
"csCueProfileName": "Drama – 60-second recap",
"csCueProfileEnabled": true,
"csCueProfileDesc": "For drama series with a 60-second recap and two minutes of end credits",
"csCueList": [ ... ]
}
]
}
A bad request returns an HTTP 400 status – for example, if a filter or sort field is invalid, or if you specify only one of page and limit.
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.
See also
For full details of this API, see the config-manager API documentation.