Api Update Key Partial Update
PATCH handler with superadmin lock and field protection.
Checks:
- Object lock (is_managed=True -> non-superadmins can’t modify)
- Field protection (non-superadmins can’t modify specific fields)
Authentication
AuthorizationBearer
JWT access token or Respan API key
Path parameters
id
Request
This endpoint expects an object.
project
name
A free-form name for the API key. Need not be unique. 50 characters max.
revoked
If the API key is revoked, clients cannot use it anymore. (This cannot be undone.)
expiry_date
Once API key expires, clients cannot use it anymore.
max_usage
rate_limit
spending_limit
is_temporary
Response
id
api_key
suffix
status
active- Activeexpired- Expiredrevoked- Revoked
prefix
hashed_key
created
key_usage
last_used
spending_in_period
is_test
revoked_at
revoked_by_email
user
organization
created_by
updated_by
project
name
A free-form name for the API key. Need not be unique. 50 characters max.
revoked
If the API key is revoked, clients cannot use it anymore. (This cannot be undone.)
expiry_date
Once API key expires, clients cannot use it anymore.
max_usage
rate_limit
spending_limit
is_temporary