social.grain.repo.createRecord
Create 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).
Details · procedure
| Kind | procedure |
|---|---|
| Authority | repo.grain.social |
| Commit rev | 3n2sngsqqqrbg |
| Indexed |
Showing version bafyreialrt27b75ofryyt3p2uv5tfizyp5yu2gjkstarqxcc2budbzhagu. Show the latest
Procedure
procedure · POSTInput
application/jsonA collection grain indexes.
The record. One without a $type is given the collection's.
rkey
string · record-keymaxLength: 512
swapCommit
string · cidOutput
application/jsonschema
refErrors
UnknownCollection
grain does not index the collection.
InvalidRecord
The record does not fit its lexicon.
InvalidSwap
No description in schema.
ScopeMissingError
The account's PDS granted the session less than the write needs.
Similar lexicons
semantic matchLexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
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.
-
com.atproto.repo.createRecord
procedureCreate a single new repository record. Requires auth, implemented by PDS.
-
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.putRecord
procedureWrite a repository record, creating or updating it as needed. Requires auth, implemented by PDS.
-
social.grain.repo.deleteRecord
procedureDelete a record from the logged-in account's repo, at its PDS, and from the index before answering. Called as social.grain.repo.createRecord is.