v1.0.0
OAS 3.0.3
Lightyear API
Lightyear API
Client Libraries
Lightyear API
Collections
Environment name (dev | prod)
Collection name
Model name
The id of the currently running sync
The id of the user in your system. Only required when the sync is for ALL managed users.
The id of the object in the collection
The id of the object in your system
The string representation of when the object was updated in your system
The object data
Whether to overwrite the object if it already exists. Default: false
Unauthorized
curl 'https://app.runlightyear.com/api/v1/envs/{envName}/collections/{collectionName}/models/{modelName}/objects/upsert' \
--request POST \
--header 'Content-Type: application/json' \
--header 'Authorization: YOUR_SECRET_TOKEN' \
--data '{
"syncId": "",
"managedUserId": "",
"objectId": "",
"localObjectId": "",
"localUpdatedAt": "",
"data": {},
"overwrite": true
}'
{
"message": "Upserted"
}
OK
Syncs