Atomically commit runtime database documents

POST/v1/servers/{serverId}/runtime/database/commit

Commit one to 500 document writes against the database bound to this runtime. Every write requires an explicit existence or update-time precondition, and the complete batch succeeds or fails as one transaction.

How to call this endpoint

Every ACP API request uses bearer authentication. The examples here show the actual request path, auth header, and body shape that the platform expects.

Path, query, and header parameters

These parameters control which ACP object the endpoint acts on and how the request is processed.

Path parameters
NameLocationTypeRequiredDescription
serverIdpathstringYesResource ID
Query parameters
None.

Body schema

Content type: application/json · Required

FieldTypeRequiredDescription
writesobject[]Yes
writes[].operationupsertYes
writes[].collectionIdstringYesCollection ID.
writes[].documentIdstringYesDocument ID.
writes[].dataobjectYes
writes[].preconditionobjectYes
writes[].precondition.existsbooleanYes

What the API returns

Each response code below includes the documented payload shape for the ACP API.

200Atomic database commit completedapplication/json
FieldTypeRequiredDescription
serverIdstringNoResource ID.
databaseIdstringNoDatabase ID.
commitobjectNo
commit.commitTimestringYes
commit.writesobject[]Yes
commit.writes[].operationupsert | deleteYes
commit.writes[].collectionIdstringYesCollection ID.
commit.writes[].documentIdstringYesDocument ID.
commit.writes[].updatedAtstringNoISO 8601 timestamp.
409One or more document preconditions failed; no writes were applied
None.
Atomically commit runtime database documents
Loading...
Response 200
Loading...
See the ACP quickstart and SDK flow