APIs to manage tile icons. Tile icons allow Templates-based users to apply a icons to devices.
Returns list of tile icons
successful operation
Authorization information is missing or invalid.
Not Found.
Internal server error
curl -i -X GET \ 'https://develop-api.esper.cloud/api/v1/enterprise/{enterprise_id}/tile-icons/?created_on_gt=string&created_on_lt=string&updated_on_gt=string&updated_on_lt=string&category=string&device_model=string&custom=true' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
{- "count": 0,
- "next": "string",
- "previous": "string",
- "results": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "category": "string",
- "icon_file": "string",
- "device_model": "string",
- "custom": true,
- "created_on": "2019-08-24T14:15:22Z",
- "updated_on": "2019-08-24T14:15:22Z"
}
]
}
Create a tile icon.
Successful Operation
Bad request
Authorization information is missing or invalid.
Forbidden, no permission to perform this action.
Unsupported media type.
Internal server error
curl -i -X POST \ 'https://develop-api.esper.cloud/api/v1/enterprise/{enterprise_id}/tile-icons/' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \ -H 'Content-Type: multipart/form-data' \ -F icon_file=string \ -F device_model=string \ -F enterprise=796caaf9-a7de-4817-9ffa-39d04bf83de9
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "category": "string",
- "icon_file": "string",
- "device_model": "string",
- "custom": true,
- "created_on": "2019-08-24T14:15:22Z",
- "updated_on": "2019-08-24T14:15:22Z"
}
Get a tile icon.
successful operation
Authorization information is missing or invalid.
Not Found.
Internal server error
curl -i -X GET \ 'https://develop-api.esper.cloud/api/v1/enterprise/{enterprise_id}/tile-icons/{tileicons_id}/' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "category": "string",
- "icon_file": "string",
- "device_model": "string",
- "custom": true,
- "created_on": "2019-08-24T14:15:22Z",
- "updated_on": "2019-08-24T14:15:22Z"
}
Deletes a title icon
The resource was deleted successfully.
Invalid request.
Authorization information is missing or invalid.
Forbidden, no permission to perform this action.
Not Found.
Internal server error
curl -i -X DELETE \ 'https://develop-api.esper.cloud/api/v1/enterprise/{enterprise_id}/tile-icons/{tileicons_id}/' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
{- "errors": [
- "string"
], - "message": "string",
- "status": 0
}
Apply a tile icon to a device.
Successful Operation
Bad request
Authorization information is missing or invalid.
Forbidden, no permission to perform this action.
Internal server error
{- "icon": "bc9b3dc5-578a-4929-a13c-7d1a9725e2b0",
- "apply_mode": "devices",
- "device_model": "string",
- "devices": [
- null
], - "groups": [
- "string"
]
}
{- "icon": "bc9b3dc5-578a-4929-a13c-7d1a9725e2b0",
- "apply_mode": "devices",
- "device_model": "string",
- "devices": [
- null
], - "groups": [
- "string"
]
}
Returns the model of the device(s)
Successful Operation
Bad request
Authorization information is missing or invalid.
Forbidden, no permission to perform this action.
Internal server error
{- "model": "string"
}
{- "model": "string"
}