Skip to main content
PATCH
/
v1
/
sections
/
{section_id}
Update Section Handler
curl --request PATCH \
  --url http://localhost:8000/v1/sections/{section_id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "page_number": 123,
  "prev_sibling_path_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "move_to_head": false,
  "parent_path_part_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "path_part_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "parent_path_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "materialized_path": "<string>",
  "system_managed": true,
  "tenant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "page_number": 123,
  "prev_sibling_path_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "next_sibling_path_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "system_metadata": {
    "information_statistics": {
      "num_chunks_by_type": {},
      "total_tokens": 0,
      "num_direct_children": 0,
      "children_depth": 0
    }
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.knowledgestack.ai/llms.txt

Use this file to discover all available pages before exploring further.

Headers

authorization
string | null

Path Parameters

section_id
string<uuid>
required

Cookies

ks_uat
string | null

Body

application/json

Request to update a section.

name
string | null

New section name (can contain any characters)

Required string length: 1 - 255
page_number
integer | null

New page number (must be > 0)

prev_sibling_path_id
string<uuid> | null

Move after this sibling PathPart ID

move_to_head
boolean
default:false

Set to true to move to head of sibling list. This is needed since prev_sibling_path_id = None means no update

parent_path_part_id
string<uuid> | null

Reparent to this PathPart ID (must be DOCUMENT_VERSION or SECTION in the same document version)

Response

Successful Response

Section response model.

id
string<uuid>
required

Section ID

path_part_id
string<uuid>
required

PathPart ID

name
string
required

Section name

parent_path_id
string<uuid>
required

Parent PathPart ID

materialized_path
string
required

Full materialized path from root

system_managed
boolean
required

Whether this section is system-managed

tenant_id
string<uuid>
required

Tenant ID

created_at
string<date-time>
required

Creation timestamp

updated_at
string<date-time>
required

Last update timestamp

page_number
integer | null

Page number in source document

prev_sibling_path_id
string<uuid> | null

Previous sibling PathPart ID

next_sibling_path_id
string<uuid> | null

Next sibling PathPart ID

system_metadata
SectionSystemMetadata · object

System-managed metadata (statistics, etc.)