Move a document
This api allows the user to move a document within the document tree using the
parameters parent_document_id and index. If parent_document_id is not
provided, the document will be placed at the top level of the document tree.
index represents a zero-indexed document order relative to its siblings under
the same parent. For example, if we want to put the document at top level in
first position we would send parent_document_id: null and index: 0. This api
also supports using a negative index to count backwards from the end of the
document list, which means you can put the document in last position by using
index: -1.
Path Parameters
Kind of the Konnect resource
Allowed values:services
Example:services
Id of the Konnect resource
Example:bf138ba2-c9b1-4229-b268-04d9d8a6410b
Targeted document
Example:bb84c46a-432d-4314-81e4-478614a52dcb
Body
application/json
Body
move document
Move document
move document request payload
parent document id
Example:dd4e1b98-3629-4dd3-acc0-759a726ffee2
index of the document in the parent document’s children
Example:1
Response
Response
The document has been moved
Authentication
Path Parameters
Body
Slug
stringdocument slug
Match pattern:^[\w-]+$
<= 80 characters
PublishStatus
stringAllowed values:publishedunpublished
Document
objecta document
Example:d32d905a-ed33-46a3-a093-d8f536af9a8a
Allowed values:publishedunpublished
Example:dd4e1b98-3629-4dd3-acc0-759a726ffee2
document slug
Match pattern:^[\w-]+$
<= 80 characters
Example:path-for-seo
Example:2023-01-11T02:30:42.227Z
Example:2023-01-11T02:30:42.227Z
revision of a document
Show Child Parameters
GetManyDocumentTrees
objectreturns the pagination information
Show Child Parameters
a document tree