Update access-protection config
PATCH/api/v1/chatbots/:chatbotId/access-protection
Update access-protection enabled flag and/or jwtConfig (enabled, emailClaim, secret). If a new JWT secret is provided it is encrypted at rest; the plaintext is never stored. Returns the updated config (secret collapsed to hasSecret). Required scope: security:write.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 429
Access-protection configuration updated.
Bad Request — invalid input
Unauthorized — missing or invalid API key
Forbidden — key lacks required scope
Not Found
Too Many Requests — rate limit exceeded