API · v1 · stable
CODEMETA OSDeveloper Center
EN
Open console

Commit offline ops — apply to server

POST/v1/sync/commit

CodeMeta OS API endpoint.

Request body

NameTypeDescription
opsrequiredarray
resolutionsobjectMap of opId → resolved body for conflict overrides

Example

curl -X POST https://api.codemeta-os.de/v1/sync/commit \
  -H "X-Tenant-Id: $TENANT" \
  -H "Content-Type: application/json" \
  -b cookies.txt \
  -d '{
  "ops": [],
  "resolutions": null
}'
const result = await cm.sync.post({
  "ops": [],
  "resolutions": null
});

Response codes

HTTP Meaning
200 Default Response

Search