Device Synchronization API

Get Sync Status

GET /api/2/sync-devices/(username).json
  • requires authentication
  • since 2.10

Example response:

{
  "synchronized": [
       ["notebook", "n900"],
       ["pc-home", "pc-work"],
    ],
  "not-synchronized": [
       "test-pc", "netbook"
    ]
}
Parameters:
  • username – username for which the sync status is requested

Start / Stop Sync

POST /api/2/sync-devices/(username).json
  • requires authentication
  • since 2.10

Example request:

{
  "synchronize": [
       ["notebook", "netbook"]
     ],
  "stop-synchronize": ["pc-work"]
}

Sets up / stops synchronization between devices. The synchronization status is sent as a response

Example status:

{
  "synchronized": [
       ["notebook", "netbook", "n900"]
   ],
  "not-synchronized": [
       "test-pc", "pc-work", "pc-home"
   ]
}
Parameters:
  • username – username for which the sync status is requested