You are viewing an old version of this page. View the current version.
Compare with Current View Version History
« Previous Version 3 Next »
This section describes BSS communication with AminoTV Management Device API
All BSS endpoints support API key authorization. The header named 'Authorization' with content "Apikey PUT_YOUR_KEY_HERE" must be passed with request.
In addition to API key authorization some clients can have IP white listing feature enabled, which will allow access only from specific IP's.
Both API key and IP addresses allowed list are customer specific data and you should contact support person to obtain those.
Endpoint
HTTP method
Purpose
Up-to-date resource schema could be found on API documentation page Management Device API under schemas section.
{ "data": [ { "type": "Device", "attributes": { "serial_number": "84-6593603", "player_id": "62768247017" }, "relationships": { "user": { "data": { "id": "41", "type": "User" } } } } ] }
serial_number is a unique per device and nullable.
serial_number
player_id is nullable
player_id
Each of device should belongs to one user
By calling Get index devices endpoint client could get paginated list of all existing devices. The default pagination limit is 100 items per page.
By calling Get device by id endpoint client could obtain concrete device data.
By calling Create device endpoint client could create new device.
{ "data": [ { "id": "41", "type": "Device", "attributes": { "serial_number": "84-6593603", "player_id": "62768247017" }, "relationships": { "user": { "data": { "id": "41", "type": "User" } } } } ] } RESPONSE 201 Created { "data": [ { "id": "41", "type": "Device", "attributes": { "serial_number": "84-6593603", "player_id": "62768247017" }, "relationships": { "user": { "data": { "id": "41", "type": "User" } } } } ] }
Device can be created with null values in both fields serial_number and player_id.
{ "data": [ { "id": "41", "type": "Device", "attributes": { "serial_number": null, "player_id": null }, "relationships": { "user": { "data": { "id": "41", "type": "User" } } } } ] } RESPONSE 201 Created { "data": [ { "id": "41", "type": "Device", "attributes": { "serial_number": null, "player_id": null }, "relationships": { "user": { "data": { "id": "41", "type": "User" } } } } ] }
Use Update Device API endpoint.
If the request body contains user relationship, the device will be updated to new user. Otherwise, if we does not want to update the device to new user, we do not need to contain user relationships in the request body.
Use Delete Device API endpoint.
Table of Contents
Child Pages