Commit offline ops — apply to server
POST/v1/sync/commit
CodeMeta OS API endpoint.
Request body
| Naam | Type | Beschrijving |
|---|
opsvereist | array | |
resolutions | object | Map of opId → resolved body for conflict overrides |
Voorbeeld
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
});
Antwoordcodes
| HTTP |
Betekenis |
200 |
Default Response |