Update an API key

Authentication

AuthorizationBearer
API key as bearer token in Authorization header

Path parameters

hashstringRequired

Request

This endpoint expects an object.
namestringOptional
New name for the API key
disabledbooleanOptional
Whether to disable the API key
limitdouble or nullOptional
New spending limit for the API key in USD
limit_resetenum or nullOptional

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_limitbooleanOptional
Whether to include BYOK usage in the limit

Response

API key updated successfully
dataobject
The updated API key information