Update a Knowledge document
Change a document. Omitted fields stay and null clears one. New text (text documents) or file (file documents) replaces the content and indexes it again; a new sourceUrl or crawl (website documents) takes a new snapshot. status: paused hides it from every Agent without deleting it.
- Scope:
raiz:knowledge:write - Credentials: an API key, a client-credentials token or a person's access token
- Effect: writes; idempotent, safe to retry
- Limits: request body up to 12 MB, response up to 1 MB
- CLI:
arbol raiz knowledge update· MCP tool:raiz_knowledge_update
PATCH
https://api.getarbol.com/v1/raiz/knowledge/{knowledgeDocumentId}Authorization
Path parameters
Request body JSON required
Returns
200
Successful operation.
404
NOT_FOUND: The requested operation does not exist.RESOURCE_NOT_FOUND: The requested resource does not exist in this organization.
409
VERSION_CONFLICT: The resource changed after it was read. Read it again and retry with the new version.
422
KNOWLEDGE_FILE_INVALID: The file is not valid base64, exceeds the size limit or does not match its declared type.KNOWLEDGE_KIND_MISMATCH: The change does not apply to this kind of Knowledge document.WEBSITE_NOT_APPROVED: This website's origin is not approved for crawling in this deployment.
502
OUTCOME_UNKNOWN: The operation may have been applied; check its result before repeating it.
503
UPSTREAM_UNAVAILABLE: The upstream service could not complete the request.INTEGRATIONS_UNAVAILABLE: The organization's integrations cannot be read right now. Try again shortly.