Update API key
Update an API key’s name, permissions, allowed_subaccounts, allowed_ips, expires_at, or is_active. The response includes an updated_fields array showing which fields changed. You cannot update the API key currently being used to authenticate the request — doing so returns 409. Note: sending an empty permissions array is silently ignored — permissions cannot be cleared via this endpoint. Permission: account:apikeys:update.
Authorizations
API key. Create and manage keys at /v4/account/api-keys or in the dashboard.
Path Parameters
Body
At least one field must be provided.
100Array of permission strings. Empty arrays are silently ignored — permissions cannot be cleared via this endpoint.
Subaccount UUIDs this key can act on. Empty array means all subaccounts.
IP addresses or CIDR ranges allowed to use this key. Empty array means no IP restriction.
Unix timestamp for key expiry. Must be in the future.
Enable or disable the key without deleting it.