Orq MCP is live: Use natural language to interrogate traces, spot regressions, and experiment your way to optimal AI configurations. Available in Claude Desktop, Claude Code, Cursor, and more. Start now →
Update an existing chunk’s content or metadata within a datasource. Modify the text, keywords, or custom attributes of a specific segment.
curl --request PATCH \
--url https://api.orq.ai/v2/knowledge/{knowledge_id}/datasources/{datasource_id}/chunks/{chunk_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"text": "<string>",
"embedding": [
123
],
"metadata": {}
}
'{
"_id": "<string>",
"text": "<string>",
"enabled": true,
"status": "pending",
"created": "<string>",
"updated": "<string>",
"metadata": {},
"created_by_id": "<string>",
"update_by_id": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://docs.orq.ai/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The unique identifier of the chunk
The unique identifier of the data source
The unique identifier of the knowledge base
Chunk successfully updated
The unique identifier of the chunk
The text content of the chunk
Whether the chunk is enabled
The status of the chunk
pending, processing, completed, failed, queued The date and time the chunk was created
The date and time the chunk was updated
Metadata of the chunk. Can include page_number or any other key-value pairs
Show child attributes
The unique identifier of the user who created the chunk
The unique identifier of the user who updated the chunk
Was this page helpful?
curl --request PATCH \
--url https://api.orq.ai/v2/knowledge/{knowledge_id}/datasources/{datasource_id}/chunks/{chunk_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"text": "<string>",
"embedding": [
123
],
"metadata": {}
}
'{
"_id": "<string>",
"text": "<string>",
"enabled": true,
"status": "pending",
"created": "<string>",
"updated": "<string>",
"metadata": {},
"created_by_id": "<string>",
"update_by_id": "<string>"
}