Update knowledge scopes
PATCH/api/v1/chatbots/:chatbotId/scopes
Partial update of the knowledge-scope configuration. Write set matches GET read set exactly: scopes, uiTree, slotWorkflows, defaultSlotId, defaultScopeLabel, showDefaultScopeInSelector. Unknown fields are ignored. Legacy scope fields (knowledgeScopes, defaultScopeId, scopeRelationships, scopeCanvasLayout, scopeWorkflows, activeScopeWorkflowId) are not managed via this endpoint. Required scope: chatbots:write.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 429
Scopes updated. Returns refreshed scopes payload.
Bad Request — invalid input
Unauthorized — missing or invalid API key
Forbidden — key lacks required scope
Not Found
Too Many Requests — rate limit exceeded