Revision

object

revision of a document

idstring(uuid)required

revision id

Example:d32d905a-ed33-46a3-a093-d8f536af9a8a

document_idstring(uuid)required

document id

Example:2272b454-4af6-4c56-8a02-d6145ac62e67

contentobjectrequired

content of the document

Example:{"type":"doc","content":[{"type":"paragraph","content":[{"text":"Hello World","type":"text"}]}]}

Show Child Parameters
metadataobjectrequired

Example:{"author":"John Doe"}

titlestringrequired

Example:Hello world

raw_md_contentstring(byte)

raw markdown content

Example:I0ludHJvZHVjdGlvbg==

str_md_contentstring

markdown content

Example:## My Markdown

fileobjectrequired

file of the revision

Show Child Parameters
Example

CreateDocumentPayload

object

a document payload

parent_document_idstring(uuid)

parent document id

Example:dd4e1b98-3629-4dd3-acc0-759a726ffee2

slugstringrequired

document slug

Match pattern:^[\w-]+$

<= 80 characters

Example:path-for-seo

statusstringrequired

Allowed values:publishedunpublished

titlestringrequired

document title

Example:How to create a document in Konnect DocumentHub

raw_contentstring(byte)

Must be a base64 encoded string. Either raw_content or str_mdr_content are required.

Example:YmFzZTY0LWVuY29kZWQgdGV4dCBzdHJpbmc=

str_md_contentstring

Markdown content. Either raw_content or str_mdr_content are required.

Example:## My Markdown

metadataobject

metadata of the document

Example:{"author":"John Doe"}

filenamestringrequired

name of the uploaded file

Example:my_doc.md

Example

UpdateDocumentPayload

object

a document payload

parent_document_idstring(uuid)

Parent document Id. If this value is explicitly set to null, the
document will be put as a top level document at the bottom of the tree.

Example:dd4e1b98-3629-4dd3-acc0-759a726ffee2

slugstring

document slug

Match pattern:^[\w-]+$

<= 80 characters

Example:path-for-seo

statusstring

Allowed values:publishedunpublished

titlestring

document title

Example:How to update a document in Konnect DocumentHub

raw_contentstring(byte)

base64 encoded string of the document content

Example:YmFzZTY0LWVuY29kZWQgdGV4dCBzdHJpbmc=

str_md_contentstring

markdown content

Example:## My Markdown

filenamestring

name of the uploaded file

Example:my_doc.md

metadataobject
Example

Document Creation Response Payload

object

a document payload

document_idstring(uuid)required

document id

Example:d32d905a-ed33-46a3-a093-d8f536af9a8a

revision_idstring(uuid)required

revision id

Example:ecfb698d-77a8-4ab5-91fa-45ee383b48ba

Example

Move document

object

move document request payload

parent_document_idstring(uuid)

parent document id

Example:dd4e1b98-3629-4dd3-acc0-759a726ffee2

indexinteger

index of the document in the parent document’s children

Example:1

Example