Updates an existing API key. The API key type (user vs service) and associated user_id cannot be changed after creation.
reset_usage when you want to clear the API key’s current usage without changing other fields.
exhausted, this reset reactivates it to active (when applicable). After the update, confirm the key reflects reset behavior in response fields such as status and last_reset_at.
Use Rotate API Key when you need a newly generated API key value while maintaining transition support for the previous key."Development API Key"
"API key for development environment"
{
"credit_limit": 10,
"periodic_reset": "monthly",
"alert_threshold": 8
}Whether to reset current usage. If the current status is exhausted, this will change it back to active.
true
["completions.write"]OK
The response is of type object.