Update API key

Updates an existing API key. Requires a Provisioning API key.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

hashstringRequired

Request

This endpoint expects an object.
namestringOptional
New display name for the key
disabledbooleanOptional
Whether the key should be disabled
limitdouble or nullOptional
New credit limit for the key
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 credit limit

Response

Updated API key
dataobject