Upload a batch of changes
At most 500 changes and 5242880 bytes. Per record, the latest changed_at wins; a time ahead of the server's is capped at it, and a tie keeps the change that arrived first. A change dated by the device rather than by the record (a deletion, say) must keep its changed_at when it is sent again.
Authorization
SyncToken A SyncPilled token from POST /v1/apps/{app}/auth/token, valid for one hour.
In: header
Path Parameters
The app's id.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/apps/string/sync/push" \ -H "Content-Type: application/json" \ -d '{ "changes": [ { "collection": "string", "id": "string", "changed_at": "2019-08-24T14:15:22Z", "data": { "property1": null, "property2": null } } ] }'{ "results": [ { "status": "applied", "seq": 0 } ]}Exchange the app's sign-in token for a SyncPilled token
Exchange the app's sign-in token for a SyncPilled token (POST /v1/apps/{app}/auth/token) in the SyncPilled API. Accepts the app's own sign-in token.
Download the changes after a position
Download the changes after a position (GET /v1/apps/{app}/sync/pull) in the SyncPilled API. Accepts a SyncPilled token from the app's sign-in.