com.atproto.repo.applyWrites
POSTcom.atproto.repo.applyWrites
Apply a batch transaction of repository creates, updates, and deletes. Requires auth, implemented by PDS.
Request
- application/json
Body
required
Array [
- com.atproto.repo.applyWrites.create
- com.atproto.repo.applyWrites.update
- com.atproto.repo.applyWrites.delete
]
repo at-identifierrequired
The handle or DID of the repo (aka, current account).
validate boolean
Default value: true
Can be set to 'false' to skip Lexicon schema validation of record data, for all operations.
writes
object[]
required
oneOf
collection nsidrequired
rkey string
Possible values: <= 15 characters
value required
collection nsidrequired
rkey stringrequired
value required
collection nsidrequired
rkey stringrequired
swapCommit cid
If provided, the entire operation will fail if the current repo commit CID does not match this value. Used to prevent conflicting repo mutations.
Responses
- 200
- 400
- 401
OK
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
error stringrequired
Possible values: [InvalidRequest
, ExpiredToken
, InvalidToken
, InvalidSwap
]
message stringrequired
{
"error": "InvalidRequest",
"message": "string"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
error required
message stringrequired
{
"message": "string"
}
Loading...