full diff

social.grain.repo.createRecord

grain.social +1 −1
From
bafyreihn5736yqxf5eyh252pbsru5k7dvnvwtvc4trezyxtaqxxkl4hdci indexed 2026-11-19 01:43 UTC View this version
To
bafyreialrt27b75ofryyt3p2uv5tfizyp5yu2gjkstarqxcc2budbzhagu indexed 2026-11-21 08:07 UTC View this version

Compatibility

backward compatible No changes detected.

Changes

11{
22 "$type": "com.atproto.lexicon.schema",
33 "defs": {
44 "main": {
5 "description": "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.indexRecords).",
5 "description": "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).",
66 "errors": [
77 {
88 "description": "grain does not index the collection.",
99 "name": "UnknownCollection"
1010 },
1111 {
1212 "description": "The record does not fit its lexicon.",
1313 "name": "InvalidRecord"
1414 },
1515 {
1616 "name": "InvalidSwap"
1717 },
1818 {
1919 "description": "The account's PDS granted the session less than the write needs.",
2020 "name": "ScopeMissingError"
2121 }
2222 ],
2323 "input": {
2424 "encoding": "application/json",
2525 "schema": {
2626 "properties": {
2727 "collection": {
2828 "description": "A collection grain indexes.",
2929 "format": "nsid",
3030 "type": "string"
3131 },
3232 "record": {
3333 "description": "The record. One without a $type is given the collection's.",
3434 "type": "unknown"
3535 },
3636 "rkey": {
3737 "format": "record-key",
3838 "maxLength": 512,
3939 "type": "string"
4040 },
4141 "swapCommit": {
4242 "format": "cid",
4343 "type": "string"
4444 }
4545 },
4646 "required": [
4747 "collection",
4848 "record"
4949 ],
5050 "type": "object"
5151 }
5252 },
5353 "output": {
5454 "encoding": "application/json",
5555 "schema": {
5656 "ref": "social.grain.repo.defs#written",
5757 "type": "ref"
5858 }
5959 },
6060 "type": "procedure"
6161 }
6262 },
6363 "id": "social.grain.repo.createRecord",
6464 "lexicon": 1
6565}

Compare other versions