social.grain.repo.applyWrites
Make 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.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | repo.grain.social |
| Commit rev | 3n2mx2lyb2hbg |
| Indexed |
Procedure
procedure · POSTInput
application/jsonOutput
application/jsonEach write's result, in the place of its write.
Errors
UnknownCollection
grain does not index a write's collection.
InvalidRecord
A write's value does not fit its lexicon.
InvalidSwap
No description in schema.
ScopeMissingError
The account's PDS granted the session less than the writes need.
#create
objectProperties
#createResult
object#delete
objectProperties
maxLength: 512
#deleteResult
objectProperties
#update
objectProperties
#updateResult
objectSimilar lexicons
semantic matchLexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
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.applyWrites
procedureApply a batch transaction of repository creates, updates, and deletes. Requires auth, implemented by PDS.
-
social.grain.repo.putRecord
procedureWrite a record in the logged-in account's repo, creating or replacing it, at its PDS, and index it before answering. Called as social.grain.repo.createRecord is.
-
social.grain.repo.createRecord
procedureCreate a record in the logged-in account's repo, at its PDS, and index it before answering. For the web, by its session cookie, from a page of the site; a service token is refused (the apps write to their own PDS, then call social.grain.sync.refreshRecords).