Update an API key
Update an existing API key. Management key required.
Authentication
AuthorizationBearer
API key as bearer token in Authorization header
Path parameters
hash
The hash identifier of the API key to update
Request
This endpoint expects an object.
name
New name for the API key
disabled
Whether to disable the API key
limit
New spending limit for the API key in USD
limit_reset
New limit reset type for the API key (daily, weekly, monthly, or null for no reset). Resets happen automatically at midnight UTC, and weeks are Monday through Sunday.
Allowed values:
include_byok_in_limit
Whether to include BYOK usage in the limit
Response
API key updated successfully
data
The updated API key information
Errors
400
Bad Request Error
401
Unauthorized Error
404
Not Found Error
429
Too Many Requests Error
500
Internal Server Error