Files
bsky-social-app/lexicons/app/bsky/draft/createDraft.json
T
2026-08-13 12:26:12 -07:00

49 lines
1.2 KiB
JSON

{
"id": "app.bsky.draft.createDraft",
"defs": {
"main": {
"type": "procedure",
"input": {
"schema": {
"type": "object",
"required": [
"draft"
],
"properties": {
"draft": {
"ref": "app.bsky.draft.defs#draft",
"type": "ref"
}
}
},
"encoding": "application/json"
},
"errors": [
{
"name": "DraftLimitReached",
"description": "Trying to insert a new draft when the limit was already reached."
}
],
"output": {
"schema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"format": "tid",
"description": "The ID of the created draft."
}
}
},
"encoding": "application/json"
},
"description": "Inserts a draft using private storage (stash). An upper limit of drafts might be enforced. Requires authentication."
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}