REST API

A REST API is an architectural style for an application program interface (API) that uses HTTP requests to access and use data. That data can be used to GET, POST, PATCH, and DELETE data types, referring to the reading, updating, creating, changing, and deleting operations concerning resources.

circle-info

REST API is a licensed feature. For more details, please get in touch with our Licensing Team.

  • Base URL: Your current RealityHub address and port (ex: http://localhost)

  • Endpoint: Communication channel that you want to do various processes (/api/rest/v1/engines/1/nodes)

circle-info

If the Endpoint contains characters that the URL doesn't support, those characters should be URL-Encoded. For more information, please visit: HTML URL Encoding Referencearrow-up-right

Get Engines

get
Responses
chevron-right
200

OK

application/json
get
/api/rest/v1/engines

Get a Single Engine

get
Path parameters
engineIdintegerRequired

The ID of the engine.

Example: 3
Responses
chevron-right
200

OK

application/json
get
/api/rest/v1/engines/{engineId}

Get Nodes of an Engine

get
Path parameters
engineIdintegerRequired

The ID of the engine.

Example: 3
Responses
chevron-right
200

OK

application/json
get
/api/rest/v1/engines/{engineId}/nodes

Get a Single Node

get
Path parameters
engineIdintegerRequired

The ID of the engine.

Example: 3
nodePathstringRequired

The path of the node. (The ID of the node if the engine is RE5)

Example: 15f34237-9fa1-405c-89e6-4eacade51456
Responses
chevron-right
200

OK

application/json
get
/api/rest/v1/engines/{engineId}/nodes/{nodePath}

Get Properties of a Node

get
Path parameters
engineIdintegerRequired

The ID of the engine.

Example: 3
nodePathstringRequired

The path of the node. (The ID of the node if the engine is RE5)

Example: 15f34237-9fa1-405c-89e6-4eacade51456
Responses
chevron-right
200

OK

application/json
get
/api/rest/v1/engines/{engineId}/nodes/{nodePath}/properties

Get a Single Property

get
Path parameters
engineIdintegerRequired

The ID of the engine.

Example: 3
nodePathstringRequired

The path of the node. (The ID of the node if the engine is RE5)

Example: 15f34237-9fa1-405c-89e6-4eacade51456
propertyPathstringRequired

The path of the property. (The ID of the pin if the engine is RE5)

Example: 5ec1e795-f3c2-4834-b84b-d97cdd7f3464
Responses
chevron-right
200

OK

application/json
get
/api/rest/v1/engines/{engineId}/nodes/{nodePath}/properties/{propertyPath}

Update a Property's Value

patch
Path parameters
engineIdintegerRequired

The ID of the engine.

Example: 3
nodePathstringRequired

The path of the node. (The ID of the node if the engine is RE5)

Example: 15f34237-9fa1-405c-89e6-4eacade51456
propertyPathstringRequired

The path of the property. (The ID of the pin if the engine is RE5)

Reality Engine 5 supports partial pin update. In order to perform a partial update you need to construct the property path accordingly. Assume we have a mat4 pin and want to update the 'z' attribute of mat4's 'w' field. Then the property path should be ".w.z" The path bits should be delimited by a dot (.) and should be append to the original property path (after a dot).

Example: 5ec1e795-f3c2-4834-b84b-d97cdd7f3464
Body
Valueany ofRequired
booleanOptional
or
numberOptional
or
integerOptional
or
objectOptional
or
or
stringOptional
Responses
chevron-right
200

OK

application/json
patch
/api/rest/v1/engines/{engineId}/nodes/{nodePath}/properties/{propertyPath}

Get Functions of a Node

get
Path parameters
engineIdintegerRequired

The ID of the engine.

Example: 3
nodePathstringRequired

The path of the node. (The ID of the node if the engine is RE5)

Example: 6c1293aa-418d-440a-a3b0-fb47c5d8090b
Responses
chevron-right
200

OK

application/json
get
/api/rest/v1/engines/{engineId}/nodes/{nodePath}/functions

Get a Single Function

get
Path parameters
engineIdintegerRequired

The ID of the engine.

Example: 3
nodePathstringRequired

The path of the node. (The ID of the node if the engine is RE5)

Example: 6c1293aa-418d-440a-a3b0-fb47c5d8090b
functionPathstringRequired

The path of the function. (The ID of the function if the engine is RE5)

Example: d6f7914f-94d2-4a76-8874-f58399b83c8c
Responses
chevron-right
200

OK

application/json
get
/api/rest/v1/engines/{engineId}/nodes/{nodePath}/functions/{functionPath}

Call a Node's Function

post
Path parameters
engineIdintegerRequired

The ID of the engine.

Example: 3
nodePathstringRequired

The path of the node. (The ID of the node if the engine is RE5)

Example: 6c1293aa-418d-440a-a3b0-fb47c5d8090b
functionPathstringRequired

The path of the function. (The ID of the function if the engine is RE5)

Example: d6f7914f-94d2-4a76-8874-f58399b83c8c
Body
Responses
chevron-right
200

OK

application/json
post
/api/rest/v1/engines/{engineId}/nodes/{nodePath}/functions/{functionPath}

List Rundowns

get
Responses
chevron-right
200

OK

application/json
get
/api/rest/v1/playout/rundowns

Create a New Rundown

post
Body
namestringRequired
Responses
post
/api/rest/v1/playout/rundowns

Get a Single Rundown

get
Path parameters
rundownIdintegerRequired

The ID of the rundown.

Example: 5
Responses
chevron-right
200

OK

application/json
get
/api/rest/v1/playout/rundowns/{rundownId}

Delete a Rundown

delete
Path parameters
rundownIdintegerRequired

The ID of the rundown.

Example: 6
Responses
delete
/api/rest/v1/playout/rundowns/{rundownId}

No content

Rename a Rundown

patch
Path parameters
rundownIdintegerRequired

The ID of the rundown.

Example: 6
Body
namestringRequired
Responses
chevron-right
200

OK

application/json
patch
/api/rest/v1/playout/rundowns/{rundownId}

List Rundown Items

get
Path parameters
rundownIdintegerRequired

The ID of the rundown.

Example: 1
Responses
chevron-right
200

OK

application/json
get
/api/rest/v1/playout/rundowns/{rundownId}/items

Create a New Rundown Item

post
Body
namestringRequired
templatestringRequired
orderintegerOptional
Responses
post
/api/rest/v1/playout/rundowns/{rundownId}/items

List All Templates

get
Responses
chevron-right
200

OK

application/json
get
/api/rest/v1/playout/templates

Get a Single Rundown Item

get
Path parameters
rundownIdintegerRequired

The ID of the rundown.

Example: 1
itemIdintegerRequired

The ID of the item.

Example: 2
Responses
chevron-right
200

OK

application/json
get
/api/rest/v1/playout/rundowns/{rundownId}/items/{itemId}

Delete a Rundown Item

delete
Path parameters
rundownIdintegerRequired

The ID of the rundown.

Example: 1
itemIdintegerRequired

The ID of the item.

Example: 2
Responses
delete
/api/rest/v1/playout/rundowns/{rundownId}/items/{itemId}

No content

Update a Rundown Item

patch
Path parameters
rundownIdintegerRequired

The ID of the rundown.

Example: 1
itemIdintegerRequired

The ID of the item.

Example: 2
Body
namestringOptional
templatestringOptional
orderintegerOptional
overriddenChannelsinteger[]Optional
Responses
chevron-right
200

OK

application/json
patch
/api/rest/v1/playout/rundowns/{rundownId}/items/{itemId}

Trigger a Rundown Item Button

post
Path parameters
rundownIdintegerRequired

The ID of the rundown.

Example: 1
itemIdintegerRequired

The ID of the item.

Example: 3
buttonKeystringRequired

The key of the form button.

Example: c2f0df19-a147-4976-ba86-2e27156b2eab
Responses
chevron-right
200

OK

application/json
post
/api/rest/v1/playout/rundowns/{rundownId}/items/{itemId}/{buttonKey}

List Newsroom Rundowns

get
Responses
chevron-right
200

OK

application/json
get
/api/rest/v1/newsroom/rundowns

List Newsroom Rundowns of a Single NCS Device

get
Path parameters
ncsIDstringRequired

The Device ID of the NCS (can be found in Configuration -> MOS Module -> Configuration)

Example: OCTOPUS2
Responses
chevron-right
200

OK

application/json
get
/api/rest/v1/newsroom/rundowns/{ncsID}

Get a Single Rundown

get
Path parameters
ncsIDstringRequired

The Device ID of the NCS (can be found in Configuration -> MOS Module -> Configuration)

Example: OCTOPUS2
roIDintegerRequired

Rundown ID (given by the NCS Device)

Example: 69425946
Responses
chevron-right
200

OK

application/json
get
/api/rest/v1/newsroom/rundowns/{ncsID}/{roID}

Update a MOS Object's Data

patch
Path parameters
objIDstringRequired

The ID of the MOS object to update.

Example: 048c0b52-0c5c-47a6-9f23-b375ea6d9feb
Body
descriptionstringOptional
Responses
chevron-right
200

OK

application/json
patch
/api/rest/v1/newsroom/mosObjects/{objID}

Trigger a MOS Object's Button (Newsroom Rundown Item Button)

post
Path parameters
ncsIDstringRequired

The Device ID of the NCS (can be found in Configuration -> MOS Module -> Configuration)

Example: OCTOPUS2
roIDintegerRequired

Rundown ID

Example: 69425946
storyIDintegerRequired

Story ID

Example: 71755601
itemIDstringRequired

Item ID

Example: 2-1
buttonKeystringRequired

The key of the button to be triggered.

Example: button1
Responses
chevron-right
200

OK

application/json
post
/api/rest/v1/newsroom/rundowns/{ncsID}/{roID}/{storyID}/{itemID}/{buttonKey}

Loading Graph (RGraph & UState)

Listing

GET http://localhost/api/rest/v1/[graphs|rgraphs|ustates]

Getting Details

GET http://localhost/api/rest/v1/[graphs|rgraphs|ustates]/{id}

For Loading into an Engine

POST http://localhost/api/rest/v1/[graphs|rgraphs|ustates]/{id}/load

Post Data: { “engineHostId: {id} }

Last updated