v5.0_Tile Editor
The API calls are applicable for both MCS and MCM9000 5.5.x onwards. Please use an HTTPS call without a /.json at the end if you invoke an API call on MCS or an HTTP call with /.json at the end if you invoke an API on MCM9000 that is connected to the MCS.
For example,
On MCS - https://{{ip_address}}:{{port}}/api/{{version}}/tiles/config/
On MCM - http://{{ip_address}}:{{port}}/api/{{version}}/tiles/config/.json
Please refer to the examples in each section to use the API calls as needed.
From version 6.0.5 onwards, a 12-hour clock in AM/PM format can be created using API 5.0. Please refer to How to set 12-Hour AM/PM Clock.
Returns a list of all Tiles in the system, with its main configuration data.
Resource URL
https://{{ip_address}}:{{port}}/api/{{version}}/tiles/config
Example Request
GET
Please download the attached file to see the example of the GET tile configuration.
GET tiles/config/{uuid}
Resource Information
Requires Authentication? | |
Response Formats | json |
HTTP Methods | GET |
Returns an extended single Tiles configuration view, specified by the required {uuid} parameter.
Resource URL
https://{{ip_address}}:{{port}}/api/{{version}}/tiles/config/{{uuid}}
Parameters
Parameter | Data Type | Description |
---|---|---|
uuid | string | The UUID of the desired Tiles. |
Example Request
GET
{
"data": {
"uuid": "c60000e3-05bf-4380-8b1b-3c1422d2db18",
"label": "test",
"created": "2023-10-10T10:40:31.173Z",
"modified": "2023-10-10T10:40:31.173Z",
"content_type": "Channel",
"min_width": 32,
"min_height": 32,
"default_width": 300,
"default_height": 200,
"description": "description of the tile",
"objects": [
{
"type": "Video",
"left": {
"pixels": 0,
"percentage": 33
},
"right": {
"pixels": 0,
"percentage": 17
},
"top": {
"pixels": 0,
"percentage": 26
},
"bottom": {
"pixels": 0,
"percentage": 24
},
"max_width": {
"pixels": null,
"percentage": 100
},
"max_height": {
"pixels": null,
"percentage": 100
},
"alignment": "Top Left",
"index": 1,
"crop": {
"left": {
"percentage": 0
},
"right": {
"percentage": 0
},
"top": {
"percentage": 0
},
"bottom": {
"percentage": 0
}
}
}
]
},
"metadata": {}
}
GET tiles/config/meta
Resource Information
Requires Authentication? | |
Response Formats | json |
HTTP Methods | GET |
Returns all meta data used by Tiles configuration.
Resource URL
https://{{ip_address}}:{{port}}/api/{{version}}/tiles/config/meta
Example Request
GET
{
"objects": {
"Types": [
"Video",
"Audio",
"UMD",
"Alarm",
"Border",
"Other",
"Text",
"Icon",
"Info",
"Clock",
"Horizontal Audio",
"Image",
"Captions"
],
"Alignments": [
"Top Left",
"Top Center",
"Top Right",
"Bottom Left",
"Bottom Center",
"Bottom Right"
]
},
"ContentTypes": [
"Channel",
"Clock",
"Text Box",
"Graphics"
]
}
PUT tiles/config/{uuid}
Resource Information
Requires Authentication? | Yes |
Response Formats | json |
HTTP Methods | PUT |
Edit a tile configuration.
Resource URL
https://{{ip_address}}:{{port}}/api/{{version}}/tiles/config/{{uuid}}
Parameters
Parameter | Data Type | Description |
---|---|---|
uuid | string | The UUID of the Tile to be edited. |
Example Request
PUT
Body
{
"data": {
"label": "tile_aftercrop",
"content_type": "Channel",
"min_width": 32,
"min_height": 32,
"default_width": 300,
"default_height": 200,
"description": "description of the tile",
"objects": [
{
"type": "Video",
"left": {
"pixels": 0,
"percentage": 0
},
"right": {
"pixels": 0,
"percentage": 29
},
"top": {
"pixels": 0,
"percentage": 0
},
"bottom": {
"pixels": 0,
"percentage": 21
},
"max_width": {
"pixels": null,
"percentage": 100
},
"max_height": {
"pixels": null,
"percentage": 100
},
"alignment": "Top Left",
"index": 1,
"crop": {
"left": {
"percentage": 20
},
"right": {
"percentage": 35
},
"top": {
"percentage": 40
},
"bottom": {
"percentage": 20
}
}
}
]
},
"metadata": {}
}
Response
DELETE tiles/config/{uuid}
Resource Information
Requires Authentication? | Yes |
Response Formats | json |
HTTP Methods | DELETE |
Delete a specific tile configuration.
Resource URL
https://{{ip_address}}:{{port}}/api/{{version}}/tiles/config/{{uuid}}
Parameters
Parameter | Data Type | Description |
---|---|---|
uuid | string | The UUID of the Tile to be deleted. |
Example Request
DELETE
POST tiles/config/{uuid}
Resource Information
Requires Authentication? | Yes |
Response Formats | json |
HTTP Methods | POST |
Adds a new tile configuration.
Resource URL
https://{{ip_address}}:{{port}}/api/{{version}}/tiles/config
Example Request
POST
Body
Response
POST tiles/config multi
Resource Information
Requires Authentication? | Yes |
Response Formats | json |
HTTP Methods | POST |
Adds multi tile configuration.
Resource URL
https://{{ip_address}}:{{port}}/api/{{version}}/tiles/config
Example Request
POST
Body
Response
PUT tiles/config multi
Resource Information
Requires Authentication? | Yes |
Response Formats | json |
HTTP Methods | PUT |
Edit multi tile configuration.
Resource URL
https://{{ip_address}}:{{port}}/api/{{version}}/tiles/config
Example Request
PUT
Body
Response
DELETE tiles/config multi
Resource Information
Requires Authentication? | Yes |
Response Formats | json |
HTTP Methods | DELETE |
Delete multiple tile configuration.
Resource URL
https://{{ip_address}}:{{port}}/api/{{version}}/tiles/config
Example Request
DELETE
Body
Response