Create or update a draft document.
Input
Encoding
application/jsoncontent
string
Required
Markdown content of the draft.
tid
string
Optional
TID of an existing draft to update. Omit to create a new draft.
Output
Encoding
application/jsonSchema#defs/draftView
Errors
DraftNotFound
Try It
Requests are sent directly from your browser. Some servers may block requests due to CORS.
View raw schema
{
"description": "Create or update a draft document.",
"errors": [
{
"name": "DraftNotFound"
}
],
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"content": {
"description": "Markdown content of the draft.",
"type": "string"
},
"tid": {
"description": "TID of an existing draft to update. Omit to create a new draft.",
"type": "string"
}
},
"required": [
"content"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"ref": "#defs/draftView",
"type": "ref"
}
},
"type": "procedure"
}