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
{
"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."
}