at.unthread.document.putDraft

Create or update a draft document.

Repository @unthread.at did:plc:trxedfug5xlbw64ydrkv7cr2 namespace authority
Details · procedure
Kindprocedure
Authoritydocument.unthread.at
Indexed

Procedure

procedure · POST

Input

application/json

content

requiredstring

Markdown content of the draft.

tid

string

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

Output

application/json
Reference
  • #defs/draftView

Errors

DraftNotFound

No description in schema.

#draftView

object

Properties

content

requiredstring

createdAt

requiredstring · datetime

tid

requiredstring

updatedAt

requiredstring · datetime

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • Get a single draft document by TID.

  • town.delve.draft.updateDraft

    procedure not from the namespace authority

    Updates a draft using private storage (stash). If the draft ID points to a non-existing ID, the update will be silently ignored. This is done because updates don't enforce draft limit, so it accepts all writes, but will ignore invalid ones. Requires authentication.

  • Updates a draft using private storage (stash). If the draft ID points to a non-existing ID, the update will be silently ignored. This is done because updates don't enforce draft limit, so it accepts all writes, but will ignore invalid ones. Requires authentication.

  • Delete a draft document.