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.
-
social.grain.repo.applyWrites
procedureMake several writes in the logged-in account's repo at once, as com.atproto.repo.applyWrites makes them at its PDS, and index them before answering. Called as social.grain.repo.createRecord is.
-
social.colibri.beta.polyfill.applyWrites
procedureWrites records to the requesting user's repo in a space the AppView hosts for them. The write is authorized the way the space's authority would authorize it, stored, and indexed like a synced write. Records keep the URIs they will have on the user's PDS after a migration.
-
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.