TypeScript SDKAPI ReferenceOperations
UpdateKeysRequestBody - TypeScript SDK
UpdateKeysRequestBody - TypeScript SDK
UpdateKeysRequestBody type definition
Example Usage
1 import { UpdateKeysRequestBody } from "@openrouter/sdk/models/operations"; 2 3 let value: UpdateKeysRequestBody = {};
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
disabled | boolean | ➖ | Whether to disable the API key | false |
includeByokInLimit | boolean | ➖ | Whether to include BYOK usage in the limit | true |
limit | number | ➖ | New spending limit for the API key in USD | 75 |
limitReset | operations.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 |
name | string | ➖ | New name for the API key | Updated API Key Name |