Devices API¶
List devices¶
Response:
[
{
"id": "phone",
"caption": "My Phone",
"type": "mobile",
"subscriptions": 12
},
{
"id": "laptop",
"caption": "Work Laptop",
"type": "laptop",
"subscriptions": 8
}
]
Create / update device¶
Creates a device if it doesn't exist, or updates its caption and type.
Body:
Device types¶
mobile, laptop, desktop, server, other
Delete device¶
Auto-creation¶
Devices are auto-created when a client syncs subscriptions with a device ID that doesn't exist yet. The device gets a default caption and type of other.
Sync groups¶
Sync groups allow multiple devices to share the same subscriptions. Subscribe on one device, and the subscription appears on all devices in the group.
Get sync status¶
Response:
Set sync groups¶
Body:
Devices in the same inner array are synced together. Subscriptions are propagated across all devices in a group when changes are uploaded.