chadtmiller.com/monolith
An atproto PDS
0
0
{
"lexicon": 1,
"id": "com.atproto.space.createRecord",
"defs": {
"main": {
"type": "procedure",
"description": "Create a single new record in a space repo. Requires auth, implemented by PDS.",
"input": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["space", "repo", "collection", "record"],
"properties": {
"space": {
"type": "string",
"format": "space-ref"
},
"repo": {
"type": "string",
"format": "did"
},
"collection": {
"type": "string",
"format": "nsid"
},
"rkey": {
"type": "string",
"format": "record-key"
},
"validate": {
"type": "boolean",
"description": "Can be set to 'false' to skip Lexicon schema validation of record data, 'true' to require it, or leave unset to validate only for known Lexicons."
},
"record": {
"type": "unknown",
"description": "The record itself. Must contain a $type field."
}
}
}
},
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["uri", "cid"],
"properties": {
"uri": {
"type": "string",
"format": "at-uri"
},
"cid": {
"type": "string",
"format": "cid"
},
"validationStatus": {
"type": "string",
"knownValues": ["valid", "unknown"]
}
}
}
},
"errors": [
{
"name": "SpaceNotFound"
},
{
"name": "RecordAlreadyExists"
}
]
}
}
}