Create a knowledge scope
POST/api/v1/chatbots/:chatbotId/scopes
Create a single knowledge scope. The scope id is derived by slugifying id (if given) else label (lowercase; [^a-z0-9_-] → -). Returns 409 if a scope with that id already exists. Unlike PATCH /scopes (which replaces the whole array), this updates one scope in place, so costLimit, authorizedEmails, and authorizedDomains are preserved. Required scope: chatbots:write.
Request
Responses
- 201
- 400
- 401
- 403
- 404
- 409
- 429
Scope created.
Bad Request — invalid input
Unauthorized — missing or invalid API key
Forbidden — key lacks required scope
Not Found
Conflict — a scope with that id already exists.
Too Many Requests — rate limit exceeded