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":"document","content":[{"type":"paragraph","content":[{"text":"Hello World","type":"text"}]}]}

Show Child Parameters
metadataobjectrequired

Contains key value pairs information about entity’s metadata.

Example:{"owner":"John Appleseed"}

* Additional properties are allowed.
titlestringrequired

Example:Hello world

raw_md_contentstring(byte)

raw markdown content

Example:I0ludHJvZHVjdGlvbg==

fileobjectrequired

file of the revision

Show Child Parameters
Example

CreateCollectionPayload

object

payload to create the document collection

namestringrequired
Example

UpdateCollectionPayload

object

payload to update the document collection

namestringrequired
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\/-]+$

<= 512 characters

Example:path-for-seo

statusstring

document publish status. Default to published.

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

Contains key value pairs information about entity’s metadata.

Example:{"owner":"John Appleseed"}

* Additional properties are allowed.
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\/-]+$

<= 512 characters

Example:path-for-seo

statusstring

document publish status. Default to published.

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

Contains key value pairs information about entity’s metadata.

* Additional properties are allowed.
Example