at.unthread.document.putDraft

lexicon.store View official

Documentation

Create or update a draft document.

main procedure

Create or update a draft document.

Input

Encodingapplication/json
content string Required

Markdown content of the draft.

tid string Optional

TID of an existing draft to update. Omit to create a new draft.

Output

Encodingapplication/json

Errors

DraftNotFound
Try It

Requests are sent directly from your browser. Some servers may block requests due to CORS.

Base URL for XRPC calls (e.g., https://bsky.social)
Enter valid JSON for the request body
View raw schema
{
  "type": "procedure",
  "input": {
    "schema": {
      "type": "object",
      "required": [
        "content"
      ],
      "properties": {
        "tid": {
          "type": "string",
          "description": "TID of an existing draft to update. Omit to create a new draft."
        },
        "content": {
          "type": "string",
          "description": "Markdown content of the draft."
        }
      }
    },
    "encoding": "application/json"
  },
  "errors": [
    {
      "name": "DraftNotFound"
    }
  ],
  "output": {
    "schema": {
      "ref": "#defs/draftView",
      "type": "ref"
    },
    "encoding": "application/json"
  },
  "description": "Create or update a draft document."
}
draftView object

No description available.

Properties

content string Required

No description available.

createdAt string datetime Required

An RFC 3339 formatted timestamp.

tid string Required

No description available.

updatedAt string datetime Required

An RFC 3339 formatted timestamp.

View raw schema
{
  "type": "object",
  "required": [
    "tid",
    "content",
    "createdAt",
    "updatedAt"
  ],
  "properties": {
    "tid": {
      "type": "string"
    },
    "content": {
      "type": "string"
    },
    "createdAt": {
      "type": "string",
      "format": "datetime"
    },
    "updatedAt": {
      "type": "string",
      "format": "datetime"
    }
  }
}

Lexicon Garden

@