Pull changes since a revision
Any signed in user. Returns a device’s changes past since_rev, oldest first, cursor max_rev. It is a delta feed, so a caller advances its cursor and repeats until max_rev stops moving.
GET
/api/v1/sync/pullAuthorization
AuthorizationBearer token (JWT) · headerrequiredJWT from POST /api/v1/auth/login sent as Authorization Bearer.
Query parameters
device_idstringrequiredThe device whose branch scope the pull is read through.
since_revintegerReturn changes above this revision. Defaults to 0.
limitintegerRows to return, capped at 1000. Defaults to 500.
Responses
200
The delta and the new cursor
changesobject[]requiredShow propertiesHide properties
Array of
objectrevintegerrequiredmin -9007199254740991 · max 9007199254740991
origin_branch_idstringrequiredentitystringrequiredentity_idstringrequiredoperationstringrequiredto_branch_idstring | nullrequiredpayloadobjectrequiredmax_revintegerrequiredmin -9007199254740991 · max 9007199254740991
400
device_id is missing, since_rev or limit is not a non-negative integer, or limit is below 1
detailstringrequired401
Not authenticated
detailstringrequired403
The device belongs to another branch, or the device has been revoked
detailstringrequired404
Unknown device
detailstringrequired