TypeScript SDKOperations

UpdateKeysRequestBody - TypeScript SDK

UpdateKeysRequestBody method reference

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
namestringNew name for the API keyUpdated API Key Name
disabledbooleanWhether to disable the API keyfalse
limitnumberNew spending limit for the API key in USD75
limitResetoperations.UpdateKeysLimitResetNew 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
includeByokInLimitbooleanWhether to include BYOK usage in the limittrue