Update API Key Constraints
PATCH/api/v1/api-keys/:key_id
Update scope constraints (model allowlist, IP allowlist, spend cap) on an existing user-owned API key. Name, expiry, and scopes are immutable; revoke and recreate the key to change them.
Request
Responses
- 200
- 401
- 404
- 422
Successful Response
Unauthorized
API key not found
Validation error