UpdateKeysRequestBody - TypeScript SDK

UpdateKeysRequestBody type definition

The TypeScript SDK and docs are currently in beta. Report issues on GitHub.

Example Usage

1import { UpdateKeysRequestBody } from "@openrouter/sdk/models/operations";
2
3let value: UpdateKeysRequestBody = {};

Fields

FieldTypeRequiredDescriptionExample
namestringâž–New name for the API keyUpdated API Key Name
disabledbooleanâž–Whether to disable the API keyfalse
limitnumberâž–New spending limit for the API key in USD75
limitResetoperations.UpdateKeysLimitResetâž–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.daily
includeByokInLimitbooleanâž–Whether to include BYOK usage in the limittrue