Update an API key
Authentication
AuthorizationBearer
API key as bearer token in Authorization header
Path parameters
hash
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