Skip to content

Set a tile icon for a device
Stable

Request

Apply a tile icon to a device.

Security
esper_cloud_api_apiKey
Path
enterprise_idstringrequired

A UUID string identifying this enterprise.

Bodyapplication/jsonrequired
iconstring or null, (uuid)
apply_modestring
Default:"devices"
Enum:"devices""all_devices""groups""device_model"
device_modelstring or null
devicesArray of any, (string)
groupsArray of strings
cURL
curl -i -X POST \
  'https://api.esper.io/_mock/openapi/v1/enterprise/{enterprise_id}/tile-icon-apply/' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "icon": "bc9b3dc5-578a-4929-a13c-7d1a9725e2b0",
    "apply_mode": "devices",
    "device_model": "string",
    "devices": [
      null
    ],
    "groups": [
      "string"
    ]
  }'

Responses

Successful Operation

Bodyapplication/json
iconstring or null, (uuid)
apply_modestring
Default:"devices"
Enum:"devices""all_devices""groups""device_model"
device_modelstring or null
devicesArray of any, (string)
groupsArray of strings
Response
{ "icon": "bc9b3dc5-578a-4929-a13c-7d1a9725e2b0", "apply_mode": "devices", "device_model": "string", "devices": [ null ], "groups": [ "string" ] }