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

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

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