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

commands
object[]
required

Array of write commands to execute in the transaction

A write operation to perform in a transaction. Can be an update, upsert, or remove command.

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

results
object[]
required

Array of results for each write command executed in the transaction

Result of executing a write command. Contains the specific result type based on the command method.