Update API key (admin only)
PUT/api/auth/api-keys/:id
Update API key (admin only)
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
The updated API key.
Validation failed, or the body carries a field the DTO does not declare.
The API key is missing, unknown, revoked, or expired
The API key's role, session or chat scope, or IP allow-list does not allow this operation
No API key with this id.
The change would remove the last usable admin key: no other usable admin key lasts at least as long.