UpdateGuardrailRequest - TypeScript SDK
UpdateGuardrailRequest - TypeScript SDK
UpdateGuardrailRequest type definition
UpdateGuardrailRequest - TypeScript SDK
The TypeScript SDK and docs are currently in beta. Report issues on GitHub.
1 import { UpdateGuardrailRequest } from "@openrouter/sdk/models"; 2 3 let value: UpdateGuardrailRequest = {};
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
allowedModels | string[] | ➖ | Array of model identifiers (slug or canonical_slug accepted) | [ “openai/gpt-5.2” ] |
allowedProviders | string[] | ➖ | New list of allowed provider IDs | [ “openai”, “anthropic”, “deepseek” ] |
description | string | ➖ | New description for the guardrail | Updated description |
enforceZdr | boolean | ➖ | Whether to enforce zero data retention | true |
ignoredModels | string[] | ➖ | Array of model identifiers to exclude from routing (slug or canonical_slug accepted) | [ “openai/gpt-4o-mini” ] |
ignoredProviders | string[] | ➖ | List of provider IDs to exclude from routing | [ “azure” ] |
limitUsd | number | ➖ | New spending limit in USD | 75 |
name | string | ➖ | New name for the guardrail | Updated Guardrail Name |
resetInterval | models.GuardrailInterval | ➖ | Interval at which the limit resets (daily, weekly, monthly) | monthly |