Apply a batch transaction of repository creates, updates, and deletes. Requires auth, implemented by PDS.
Input
application/jsonrepo
stringat-identifier
Required
The handle or DID of the repo (aka, current account).
swapCommit
stringcid
Optional
If provided, the entire operation will fail if the current repo commit CID does not match this value. Used to prevent conflicting repo mutations.
validate
boolean
Optional
Can be set to 'false' to skip Lexicon schema validation of record data across all operations, 'true' to require it, or leave unset to validate only for known Lexicons.
writes
array
Required
No description provided.
Output
application/jsoncommit
refcom.atproto.repo.defs#commitMeta
Optional
No description provided.
results
array
Optional
No description provided.
Errors
InvalidSwap
Indicates that the 'swapCommit' parameter did not match current commit. Try It
Direct PDS XRPC methods (com.atproto.*) are disabled in Try It for security reasons.
View raw schema
{
"type": "procedure",
"input": {
"schema": {
"type": "object",
"required": [
"repo",
"writes"
],
"properties": {
"repo": {
"type": "string",
"format": "at-identifier",
"description": "The handle or DID of the repo (aka, current account)."
},
"writes": {
"type": "array",
"items": {
"refs": [
"#create",
"#update",
"#delete"
],
"type": "union",
"closed": true
}
},
"validate": {
"type": "boolean",
"description": "Can be set to 'false' to skip Lexicon schema validation of record data across all operations, 'true' to require it, or leave unset to validate only for known Lexicons."
},
"swapCommit": {
"type": "string",
"format": "cid",
"description": "If provided, the entire operation will fail if the current repo commit CID does not match this value. Used to prevent conflicting repo mutations."
}
}
},
"encoding": "application/json"
},
"errors": [
{
"name": "InvalidSwap",
"description": "Indicates that the 'swapCommit' parameter did not match current commit."
}
],
"output": {
"schema": {
"type": "object",
"required": [],
"properties": {
"commit": {
"ref": "com.atproto.repo.defs#commitMeta",
"type": "ref"
},
"results": {
"type": "array",
"items": {
"refs": [
"#createResult",
"#updateResult",
"#deleteResult"
],
"type": "union",
"closed": true
}
}
}
},
"encoding": "application/json"
},
"description": "Apply a batch transaction of repository creates, updates, and deletes. Requires auth, implemented by PDS."
}