Profiles
Create a Profile
POST /api/profiles
Creates a new profile.
Request
| Parameter | Type | Description |
|---|---|---|
| name | String | Name of the new profile |
| channels | Array | Array of channels to associate with the profile |
| path | String | The folder to create the profile in. Defaults to / |
Each channel object includes
| Parameter | Type | Description |
|---|---|---|
| engines | Array | Array of engine IDs that this channel should use |
| name | String | Name of the channel |
| type | String | Τhe type of channel: PROGRAM / PREVIEW / NONE / LOCAL_PREVIEW. See ChannelType |
Request Body
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
- 200 OK: the created Profile object.
- 500 Internal Server Error:
{"status": "ERROR", "error": "<validation message>"}.
Get all Profiles
GET /api/profiles
Returns all the Profiles that are currently available in your Erizos Studio environment.
Response
The response is an array of Profiles
Get Profile by ID
GET /api/profiles/[ID]
Returns the profile that corresponds to the profile ID.
Request
| Parameter | Type | Description |
|---|---|---|
| ID | ID | Uuid or the path and name of the Profile |
Response
Profile Object
Update a Profile
PUT /api/profiles/[ID]
Updates the profile.
Request
| Parameter | Type | Description |
|---|---|---|
| ID | ID | Uuid or the path and name of the Profile |
Request Body
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Parameter | Type | Description |
|---|---|---|
| name | String | Name of the Profile |
| channels | Array | Array of Channels |
| path | String | The folder the profile lives in |
Update a Channel
PUT /api/profiles/[PROFILE ID]/[CHANNEL]
Updates a single channel of the profile, leaving the other channels untouched.
Request
| Parameter | Type | Description |
|---|---|---|
| PROFILE ID | ID | Uuid or the path and name of the Profile |
| CHANNEL | String | The channel name to update, or the default ChannelType wrapped in square brackets e.g. [PROGRAM] |
Request Body
1 2 3 4 | |
Only name and type are applied.
Note
A profile has at most one PROGRAM channel and one PREVIEW channel. Setting one of those types on a channel clears the type from the channel that had it before.
Response
The updated Profile object. If the channel cannot be found the profile is returned unchanged.
Delete Profile by ID
DELETE /api/profiles/[ID]
Deletes the profile that corresponds to the profile ID.
Request
| Parameter | Type | Description |
|---|---|---|
| ID | ID | Uuid or the path and name of the Profile |
Cache Assets per Profile
POST /api/profiles/[PROFILE ID]/[CHANNEL]/cache/assets
POST /api/profiles/[PROFILE ID]/[CHANNEL]/[SYSTEM]/cache/assets
Asks the Agent of every engine in the channel to download and cache the listed assets. The [SYSTEM] segment is optional; when it is given only the engines of that system are addressed.
Request
| Parameter | Type | Description |
|---|---|---|
| PROFILE ID | ID | Uuid or the path and name of the Profile |
| CHANNEL | String | The channel name to perform the operation on or the default ChannelType wrapped in square brackets e.g. [PROGRAM] |
| SYSTEM | String | Optional. A System enum value, e.g. UE or VIZRT. It must be the enum value, not the display name |
| verifyCache | Boolean (query) | Set to true or 1 to have the Agent check whether a newer version of the asset is available, instead of keeping the copy it already has |
Request Body
1 | |
Example Body
1 2 3 4 | |
Response
A map of engine id to the Agent's answer, as described under On-Air Actions on a Profile.
On-Air Actions on a Profile
Info
Response of every on-air action
All the actions in this section answer 200 with an object keyed by the id of the engine that carried out the action:
1 2 3 4 | |
A failure on one engine is reported inside the map as {"error": "..."} and does not change the HTTP status; the request still answers 200. When the channel has no engines the map is empty.
Failures that happen before any engine is addressed do change the status:
| Status | Error | Cause |
|---|---|---|
| 404 | Unknown page / payload |
The page id does not exist, or a POST body is empty |
| 404 | Page is missing template id |
The payload has no template |
| 404 | Unknown template [ID] |
The page refers to a template that does not exist |
| 404 | Unknown show 'X' / Unknown playlist 'X' |
A show or playlist segment could not be resolved |
| 500 | Channel 'X' not found in profile 'P' |
The channel name does not exist in the profile |
A page taken in or out on [PROGRAM], or on a channel addressed by name, writes an AsRun log line. Taking a page on [PREVIEW] does not.
Note
The profile id may also be the literal [DEFAULT], which stands for a profile with no channels. It is used with [PREVIEW], where the action is sent to the local preview machine of the client making the request rather than to a profile's engines.
Take In a saved page
GET /api/profiles/[PROFILE ID]/[CHANNEL]/take/in/[PAGE ID]
Request
| Parameter | Type | Description |
|---|---|---|
| PROFILE ID | ID | Uuid or the path and name of the Profile |
| CHANNEL | String | The channel name to perform the operation on or the default ChannelType wrapped in square brackets e.g. [PROGRAM] |
| PAGE ID | Uuid | id of the Page |
| verifyCache | Boolean (query) | Check the engines' asset cache for a newer version before taking the page |
Take In a payload
POST /api/profiles/[PROFILE ID]/[CHANNEL]/take/in
Request
| Parameter | Type | Description |
|---|---|---|
| PROFILE ID | ID | Uuid or the path and name of the Profile |
| CHANNEL | String | The channel name to perform the operation on or the default ChannelType wrapped in square brackets e.g. [PROGRAM] |
Request Body
The body is a Page that does not have to exist in the database. Only template is required; fields carries the payload, name is used for the AsRun log line, and channel overrides the channel in the URL for this page.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | |
Take Out a saved page
GET /api/profiles/[PROFILE ID]/[CHANNEL]/take/out/[PAGE ID]
Request
| Parameter | Type | Description |
|---|---|---|
| PROFILE ID | ID | Uuid or the path and name of the Profile |
| CHANNEL | String | The channel name to perform the operation on or the default ChannelType wrapped in square brackets e.g. [PROGRAM] |
| PAGE ID | Uuid | id of the Page |
Take out a payload
POST /api/profiles/[PROFILE ID]/[CHANNEL]/take/out
Request
| Parameter | Type | Description |
|---|---|---|
| PROFILE ID | ID | Uuid or the path and name of the Profile |
| CHANNEL | String | The channel name to perform the operation on or the default ChannelType wrapped in square brackets e.g. [PROGRAM] |
Request Body
1 2 3 4 5 6 7 8 9 | |
Take Out everything on a channel
POST /api/profiles/[PROFILE ID]/[CHANNEL]/take/out/all
Takes out every layer currently on air on the engines of the channel. The body is not used.
Request
| Parameter | Type | Description |
|---|---|---|
| PROFILE ID | ID | Uuid or the path and name of the Profile |
| CHANNEL | String | The channel name to perform the operation on or the default ChannelType wrapped in square brackets e.g. [PROGRAM] |
Update a saved page
GET /api/profiles/[PROFILE ID]/[CHANNEL]/update/[PAGE ID]
Request
| Parameter | Type | Description |
|---|---|---|
| PROFILE ID | ID | Uuid or the path and name of the Profile |
| CHANNEL | String | The channel name to perform the operation on or the default ChannelType wrapped in square brackets e.g. [PROGRAM] |
| PAGE ID | Uuid | id of the Page |
| verifyCache | Boolean (query) | Check the engines' asset cache for a newer version before updating |
Update a payload
POST /api/profiles/[PROFILE ID]/[CHANNEL]/update
Request
| Parameter | Type | Description |
|---|---|---|
| PROFILE ID | ID | Uuid or the path and name of the Profile |
| CHANNEL | String | The channel name to perform the operation on or the default ChannelType wrapped in square brackets e.g. [PROGRAM] |
Request Body
1 2 3 4 5 6 7 8 9 | |
Update a payload while it is on air
POST /api/profiles/[PROFILE ID]/[CHANNEL]/update/live
Sends a live update to a page that is already on air, without taking it out and in again. The body is the same payload as Update a payload.
Request
| Parameter | Type | Description |
|---|---|---|
| PROFILE ID | ID | Uuid or the path and name of the Profile |
| CHANNEL | String | The channel name to perform the operation on or the default ChannelType wrapped in square brackets e.g. [PROGRAM] |
Trigger a template action
GET /api/profiles/[PROFILE ID]/[CHANNEL]/trigger/[ACTION]/[PAGE ID]
GET /api/profiles/[PROFILE ID]/[CHANNEL]/trigger/[ACTION]/[PLAYLIST ID]/[PAGE NUM]
GET /api/profiles/[PROFILE ID]/[CHANNEL]/trigger/[ACTION]/[SHOW ID]/[PLAYLIST ID]/[PAGE NUM]
POST /api/profiles/[PROFILE ID]/[CHANNEL]/trigger/[ACTION]
Triggers an action defined on the template of the page, such as continue.
Request
| Parameter | Type | Description |
|---|---|---|
| PROFILE ID | ID | Uuid or the path and name of the Profile |
| CHANNEL | String | The channel name to perform the operation on or the default ChannelType wrapped in square brackets e.g. [PROGRAM] |
| ACTION | String | The id of the action on the template |
| PAGE ID | Uuid | id of the Page. Omitted on the POST form, where the body is the payload |
Set a transition logic state
GET /api/profiles/[PROFILE ID]/[CHANNEL]/state/[STATE]/[PAGE ID]
GET /api/profiles/[PROFILE ID]/[CHANNEL]/state/[STATE]/[PLAYLIST ID]/[PAGE NUM]
GET /api/profiles/[PROFILE ID]/[CHANNEL]/state/[STATE]/[SHOW ID]/[PLAYLIST ID]/[PAGE NUM]
POST /api/profiles/[PROFILE ID]/[CHANNEL]/state/[STATE]
Sets a transition logic state on the page's graphics.
Request
| Parameter | Type | Description |
|---|---|---|
| PROFILE ID | ID | Uuid or the path and name of the Profile |
| CHANNEL | String | The channel name to perform the operation on or the default ChannelType wrapped in square brackets e.g. [PROGRAM] |
| STATE | String | The state to set |
| PAGE ID | Uuid | id of the Page. Omitted on the POST form, where the body is the payload |
Initialize a page on a Profile
GET /api/profiles/[PROFILE ID]/[CHANNEL]/initialize/[PAGE ID]
POST /api/profiles/[PROFILE ID]/[CHANNEL]/initialize
Prepares the page on the engines of the channel so that a later take is immediate. Requires the Profiles Initialize permission.
Request
| Parameter | Type | Description |
|---|---|---|
| PROFILE ID | ID | Uuid or the path and name of the Profile |
| CHANNEL | String | The channel name to perform the operation on or the default ChannelType wrapped in square brackets e.g. [PROGRAM] |
| PAGE ID | Uuid | id of the Page. Omitted on the POST form, where the body is the payload |
| verifyCache | Boolean (query) | Check the engines' asset cache for a newer version while preparing |
Cache a page on a Profile
GET /api/profiles/[PROFILE ID]/[CHANNEL]/cache/page/[PAGE ID]
POST /api/profiles/[PROFILE ID]/[CHANNEL]/cache/page
Caches the assets used by the page on the Agent of every engine in the channel.
To check whether the page's assets are already cached without downloading anything, use the same path with cache/verify/page instead of cache/page.
Request
| Parameter | Type | Description |
|---|---|---|
| PROFILE ID | ID | Uuid or the path and name of the Profile |
| CHANNEL | String | The channel name to perform the operation on or the default ChannelType wrapped in square brackets e.g. [PROGRAM] |
| PAGE ID | Uuid | id of the Page. Omitted on the POST form, where the body is the payload |
| verifyCache | Boolean (query) | Check for a newer version of each asset |
Send a command to the engines of a channel
POST /api/profiles/[PROFILE ID]/[CHANNEL]/[SYSTEM]/command
Sends a raw renderer command to every engine of the channel that runs the given system. The body is passed to the renderer unchanged, so its shape depends on the system.
Request
| Parameter | Type | Description |
|---|---|---|
| PROFILE ID | ID | Uuid or the path and name of the Profile |
| CHANNEL | String | The channel name to perform the operation on or the default ChannelType wrapped in square brackets e.g. [PROGRAM] |
| SYSTEM | String | A System enum value, e.g. UE or VIZRT |
Initialize Playlist on Profile
GET /api/profiles/[PROFILE ID]/initialize/[PLAYLIST ID]
Initializes all pages in the playlist provided on the outputs of the profile provided
Request
| Parameter | Type | Description |
|---|---|---|
| PROFILE ID | ID | Uuid or the path and name of the Profile |
| PLAYLIST ID | Uuid | id of the Playlist to initialize |
| verifyCache | Boolean (query) | Check the engines' asset cache for a newer version while preparing |
Cleanup channel in Profile
GET /api/profiles/[PROFILE ID]/[CHANNEL]/cleanup
POST /api/profiles/[PROFILE ID]/[CHANNEL]/cleanup
Performs the cleanup operation on each system, and on the Agent of each engine in the channel. The POST form takes an options body that is forwarded to the renderer.
Request
| Parameter | Type | Description |
|---|---|---|
| PROFILE ID | ID | Uuid or the path and name of the Profile |
| CHANNEL | String | The channel name to perform the operation on or the default ChannelType wrapped in square brackets e.g. [PROGRAM], [PREVIEW] or [ALL] |
Clear channel in Profile
GET /api/profiles/[PROFILE ID]/[CHANNEL]/clear
POST /api/profiles/[PROFILE ID]/[CHANNEL]/clear
Performs the clear operation on each system. The POST form takes an options body that is forwarded to the renderer.
Request
| Parameter | Type | Description |
|---|---|---|
| PROFILE ID | ID | Uuid or the path and name of the Profile |
| CHANNEL | String | The channel name to perform the operation on or the default ChannelType wrapped in square brackets e.g. [PROGRAM], [PREVIEW] or [ALL] |
Take In page by Show and page num
This command will take the page in for a specific show and page number.
GET /api/profiles/[PROFILE ID]/[CHANNEL]/take/in/[SHOW ID]/[PLAYLIST ID]/[PAGE NUM]
Request
| Parameter | Type | Description |
|---|---|---|
| PROFILE ID | ID | Uuid or the path and name of the Profile |
| CHANNEL | String | The channel name to perform the operation on or the default ChannelType wrapped in square brackets e.g. [PROGRAM] |
| SHOW ID | ID | Uuid or the path and name of the Show |
| PLAYLIST ID | ID | Uuid or the name of the Playlist. The name is matched case-insensitively within the show |
| PAGE NUM | String | The page number. It is compared as a number, so leading zeros and the number of digits do not matter |
A page number that is not in the playlist answers 404 Page Num N not found in playlist 'P'.
Take In page by page num
This command will take in a page by page number.
GET /api/profiles/[PROFILE ID]/[CHANNEL]/take/in/[PLAYLIST ID]/[PAGE NUM]
Request
| Parameter | Type | Description |
|---|---|---|
| PROFILE ID | ID | Uuid or the path and name of the Profile |
| CHANNEL | String | The channel name to perform the operation on or the default ChannelType wrapped in square brackets e.g. [PROGRAM] |
| PLAYLIST ID | ID | Uuid or the name of the Playlist |
| PAGE NUM | String | The page number. It is compared as a number, so leading zeros and the number of digits do not matter |
Take Out page by Show and page num
This command will take out the page for a specific show and page number.
GET /api/profiles/[PROFILE ID]/[CHANNEL]/take/out/[SHOW ID]/[PLAYLIST ID]/[PAGE NUM]
Request
| Parameter | Type | Description |
|---|---|---|
| PROFILE ID | ID | Uuid or the path and name of the Profile |
| CHANNEL | String | The channel name to perform the operation on or the default ChannelType wrapped in square brackets e.g. [PROGRAM] |
| SHOW ID | ID | Uuid or the path and name of the Show |
| PLAYLIST ID | ID | Uuid or the name of the Playlist |
| PAGE NUM | String | The page number. It is compared as a number, so leading zeros and the number of digits do not matter |
Take Out page by page num
This command will take out a page by page number.
GET /api/profiles/[PROFILE ID]/[CHANNEL]/take/out/[PLAYLIST ID]/[PAGE NUM]
Request
| Parameter | Type | Description |
|---|---|---|
| PROFILE ID | ID | Uuid or the path and name of the Profile |
| CHANNEL | String | The channel name to perform the operation on or the default ChannelType wrapped in square brackets e.g. [PROGRAM] |
| PLAYLIST ID | ID | Uuid or the name of the Playlist |
| PAGE NUM | String | The page number. It is compared as a number, so leading zeros and the number of digits do not matter |
Using Paths and Query Parameters
This section describes how to use advanced path values and query parameters with the take/in endpoint and similar APIs.
Use encoded names in paths
When a profile name contains spaces or special characters, use URL Encoding:
My Profile➝My%20Profile- Full path:
/api/profiles/[PROFILE PATH]/take/in
becomes:
/api/profiles/My%20Profile/take/in
Another example:
Path/To/My Profile➝Path%2FTo%2FMy%20Profile- Full path:
/api/profiles/[PROFILE PATH]/take/inbecomes:/api/profiles/Path%2FTo%2FMy%20Profile/take/in
Use nested paths (folders)
If your profile is organized in folders or namespaces, you must encode slashes / as %2F:
- Path:
/NY/Studios/Abecomes:/api/profiles/NY%2FStudios%2FA/take/in
This is useful for structured environments with regional or departmental folders.
Using query parameters for paths
Instead of encoding a path into the URL segment, put the literal BROWSE in that segment and pass the path as a query parameter. This avoids having to encode the slashes.
The query parameter must be named exactly like the route segment it replaces:
| Route | Segment | Query parameter |
|---|---|---|
/api/profiles/:profile/... |
profile | ?profile= |
/api/shows/:id/... |
id | ?id= |
/api/engines/:id/... |
id | ?id= |
/api/layouts/:id/... |
id | ?id= |
In addition, when the route has only one path segment that can be browsed, ?path= may be used in place of the segment's own name. A query parameter with any other name, such as ?engine= or ?show=, is ignored and the request answers 404.
Examples:
GET /api/profiles/BROWSE/take/in?profile=/NY/Studios/A
POST /api/engines/BROWSE/command?path=/NY/Studios/A
GET /api/shows/BROWSE/templates?id=/NY/Studios/A
GET /api/shows/BROWSE/templates?path=/NY/Studios/A