{ "$type": "com.atproto.lexicon.schema", "lexicon": 1, "id": "at.upvote.createComment", "defs": { "main": { "type": "procedure", "description": "Create a comment or reply in the authenticated caller's repository.", "input": { "encoding": "application/json", "schema": { "type": "object", "required": [ "subject", "text" ], "properties": { "subject": { "type": "string", "format": "uri", "description": "The canonical upvote.at subject for a top-level comment, or the direct parent at.upvote.comment URI for a reply." }, "text": { "type": "string", "minLength": 1, "maxLength": 50000, "minGraphemes": 1, "maxGraphemes": 5000, "description": "Markdown source." }, "facets": { "type": "array", "items": { "type": "ref", "ref": "app.bsky.richtext.facet" }, "maxLength": 100, "description": "Annotations over text, especially DID-backed mentions." }, "langs": { "type": "array", "items": { "type": "string", "format": "language" }, "maxLength": 3 }, "labels": { "type": "union", "refs": [ "com.atproto.label.defs#selfLabels" ] } } } }, "output": { "encoding": "application/json", "schema": { "type": "object", "required": [ "uri", "cid" ], "properties": { "uri": { "type": "string", "format": "at-uri", "description": "AT URI of the created comment record." }, "cid": { "type": "string", "format": "cid", "description": "CID of the created comment record." } } } }, "errors": [ { "name": "UpstreamFailure", "description": "The request could not be completed reliably; record absence or write success is unconfirmed." }, { "name": "WriteFailed", "description": "The write result could not be confirmed. Check the current record before retrying." } ] } } }