SyncPilledDocs

Upload a batch of changes

POST
/v1/apps/{app}/sync/push

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
AuthorizationBearer <token>

A SyncPilled token from POST /v1/apps/{app}/auth/token, valid for one hour.

In: header

Path Parameters

app*string

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    }  ]}