social.colibri.beta.polyfill.applyWrites
Writes 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.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | polyfill.beta.colibri.social |
| Commit rev | 3n2benzdodd22 |
| Indexed |
Procedure
procedure · POSTInput
application/jsonOutput
application/jsonOne result per write, in the same order.
The repo revision after the writes.
Errors
AuthRequired
The request has no valid service auth.
InvalidRequest
The arguments are inconsistent or malformed beyond schema validation.
SpaceNotFound
No space matches the given space reference.
NotAuthorized
The caller may not write to or read from this repo in the space.
RepoNotHosted
The AppView does not host the caller's repo in this space, because it lives on the caller's PDS. Write to the PDS instead.
InvalidRecord
A record failed validation against its lexicon.
RecordNotFound
An update or delete names a record that does not exist.
#create
objectCreates a record.
Properties
#createResult
objectThe outcome of a create.
#delete
objectDeletes a record.
Properties
The record's collection.
The record key.
#deleteResult
objectThe outcome of a delete.
Properties
#update
objectReplaces a record.
Properties
The record's collection.
The record key.
The record itself.
#updateResult
objectThe outcome of an update.
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.
-
com.atproto.repo.applyWrites
procedureApply a batch transaction of repository creates, updates, and deletes. Requires auth, implemented by PDS.
-
com.atproto.repo.putRecord
procedureWrite a repository record, creating or updating it as needed. Requires auth, implemented by PDS.
-
rsvp.atmo.space.putRecord
procedureWrite a record into a space. The author is always the JWT issuer. If rkey is omitted, a TID is generated.
-
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.