POST
/
store
/
write
{
  "results": [
    {
      "error": 123,
      "internalError": 123,
      "permissionDenied": 123,
      "transactionId": 123,
      "updated": 123,
      "method": "update"
    }
  ]
}

This is a legacy endpoint that uses the Legacy Query Language.

To use DQL, the current Ditto query language, consider using the execute endpoint.

Authorizations

Authorization
string
header
required

Authentication using either an API key or JWT token in the Authorization header

Headers

X-DITTO-TXN-ID
integer

Optional transaction ID that ensures write consistency. The operation will only proceed if the Big Peer's transaction ID is at least this value, preventing concurrent modification issues.

Body

application/json

Request to execute one or more write commands in a transaction

Response

200
application/json
The write operations completed successfully. Returns results for each command, including the new transaction ID and counts of affected documents.

Response containing results of executing a write transaction