Commit offline ops — apply to server
POST/v1/sync/commit
CodeMeta OS API endpoint.
Request Body
| Name | Typ | Beschreibung |
|---|
opserforderlich | array | |
resolutions | object | Map of opId → resolved body for conflict overrides |
Beispiel
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
});
Antwortcodes
| HTTP |
Bedeutung |
200 |
Default Response |