Skip to main content
PUT
Reorder documents

Authorizations

X-API-Key
string
header
required

API key (sk_xxx) from Developer Settings. No X-Account-ID needed.

Headers

x-account-id
string | null

Body

application/json

Request body for PUT /kb/documents/reorder. Sets position to index for each id.

document_ids
string<uuid>[]
required

Ordered list of document UUIDs (siblings under parent)

Minimum array length: 1
parent_id
string<uuid> | null

Parent folder UUID; null = root level

Response

Successful Response