com.atproto.repo.applyWrites
Apply a batch transaction of repository creates, updates, and deletes. Requires auth, implemented by PDS.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | repo.atproto.com |
| Indexed |
Procedure
procedure · POSTInput
application/jsonThe handle or DID of the repo (aka, current account).
swapCommit
string · cidIf provided, the entire operation will fail if the current repo commit CID does not match this value. Used to prevent conflicting repo mutations.
validate
booleanCan 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.
Errors
InvalidSwap
Indicates that the 'swapCommit' parameter did not match current commit.
#create
objectOperation which creates a new record.
Properties
rkey
string · record-keyNOTE: maxLength is redundant with record-key format. Keeping it temporarily to ensure backwards compatibility.
maxLength: 512
#createResult
objectProperties
#delete
objectOperation which deletes an existing record.
Properties
#deleteResult
objectProperties
#update
objectOperation which updates an existing record.
Properties
#updateResult
objectProperties
Similar lexicons
semantic matchLexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
com.atproto.repo.putRecord
procedureWrite a repository record, creating or updating it as needed. Requires auth, implemented by PDS.
-
com.atproto.repo.createRecord
procedureCreate a single new repository record. Requires auth, implemented by PDS.
-
com.atproto.repo.deleteRecord
procedureDelete a repository record, or ensure it doesn't exist. Requires auth, implemented by PDS.
-
Workflow envelope shared between atiproto XRPC endpoints and the agent interpreter. The server emits an outboundWorkflow when it needs the agent to execute repo writes against the user's PDS; the agent runs the actions and calls back with an inboundWorkflow.