Documents
Create a document
This method allows you to create or publish a new document. By default a document is set to the collection root. If you want to create a nested/child document, you should pass parentDocumentId to set the parent document.
post/documents.create
Request body
Example request
{
"title": "Welcome to Acme Inc",
"text": "…"
}Response
OK
Example response
{
"data": {
"title": "🎉 Welcome to Acme Inc",
"emoji": "🎉",
"text": "…",
"urlId": "hDYep1TPAM",
"collaborators": [
{
"name": "Jane Doe"
}
],
"createdBy": {
"name": "Jane Doe"
},
"updatedBy": {
"name": "Jane Doe"
}
}
}