> ## Documentation Index
> Fetch the complete documentation index at: https://opentouter.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# UpdateGuardrailRequest - TypeScript SDK

> UpdateGuardrailRequest type definition

<Warning>
  The TypeScript SDK and docs are currently in beta.
  Report issues on [GitHub](https://github.com/OpenRouterTeam/typescript-sdk/issues).
</Warning>

## Example Usage

```typescript lines theme={null}
import { UpdateGuardrailRequest } from "@openrouter/sdk/models";

let value: UpdateGuardrailRequest = {};
```

## Fields

| Field                   | Type                                                                                                                  | Required             | Description                                                                                                                                                                                                                                                                                                                                                                             | Example                                                               |
| ----------------------- | --------------------------------------------------------------------------------------------------------------------- | -------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
| `allowedModels`         | *string*\[]                                                                                                           | :heavy\_minus\_sign: | Array of model identifiers (slug or canonical\_slug accepted)                                                                                                                                                                                                                                                                                                                           | \[<br />"openai/gpt-5.2"<br />]                                       |
| `allowedProviders`      | *string*\[]                                                                                                           | :heavy\_minus\_sign: | New list of allowed provider IDs                                                                                                                                                                                                                                                                                                                                                        | \[<br />"openai",<br />"anthropic",<br />"deepseek"<br />]            |
| `contentFilterBuiltins` | [models.ContentFilterBuiltinEntryInput](/agent-sdk/typescript/api-reference/models/contentfilterbuiltinentryinput)\[] | :heavy\_minus\_sign: | Builtin content filters to apply. Set to null to remove. The "flag" action is only supported for "regex-prompt-injection"; PII slugs (email, phone, ssn, credit-card, ip-address, person-name, address) accept "block" or "redact" only.                                                                                                                                                | \[<br />`{"action": "block","slug": "regex-prompt-injection"}`<br />] |
| `contentFilters`        | [models.ContentFilterEntry](/agent-sdk/typescript/api-reference/models/contentfilterentry)\[]                         | :heavy\_minus\_sign: | Custom regex content filters to apply. Set to null to remove.                                                                                                                                                                                                                                                                                                                           | `<nil>`                                                               |
| `description`           | *string*                                                                                                              | :heavy\_minus\_sign: | New description for the guardrail                                                                                                                                                                                                                                                                                                                                                       | Updated description                                                   |
| ~~`enforceZdr`~~        | *boolean*                                                                                                             | :heavy\_minus\_sign: | : warning: \*\* DEPRECATED \*\*: This will be removed in a future release, please migrate away from it as soon as possible.<br /><br />Deprecated. Use enforce\_zdr\_anthropic, enforce\_zdr\_openai, enforce\_zdr\_google, and enforce\_zdr\_other instead. When provided, its value is copied into any of those per-provider fields that are not explicitly specified on the request. | true                                                                  |
| `enforceZdrAnthropic`   | *boolean*                                                                                                             | :heavy\_minus\_sign: | Whether to enforce zero data retention for Anthropic models. Falls back to enforce\_zdr when not provided.                                                                                                                                                                                                                                                                              | true                                                                  |
| `enforceZdrGoogle`      | *boolean*                                                                                                             | :heavy\_minus\_sign: | Whether to enforce zero data retention for Google models. Falls back to enforce\_zdr when not provided.                                                                                                                                                                                                                                                                                 | true                                                                  |
| `enforceZdrOpenai`      | *boolean*                                                                                                             | :heavy\_minus\_sign: | Whether to enforce zero data retention for OpenAI models. Falls back to enforce\_zdr when not provided.                                                                                                                                                                                                                                                                                 | true                                                                  |
| `enforceZdrOther`       | *boolean*                                                                                                             | :heavy\_minus\_sign: | Whether to enforce zero data retention for models that are not from Anthropic, OpenAI, or Google. Falls back to enforce\_zdr when not provided.                                                                                                                                                                                                                                         | true                                                                  |
| `ignoredModels`         | *string*\[]                                                                                                           | :heavy\_minus\_sign: | Array of model identifiers to exclude from routing (slug or canonical\_slug accepted)                                                                                                                                                                                                                                                                                                   | \[<br />"openai/gpt-4o-mini"<br />]                                   |
| `ignoredProviders`      | *string*\[]                                                                                                           | :heavy\_minus\_sign: | List of provider IDs to exclude from routing                                                                                                                                                                                                                                                                                                                                            | \[<br />"azure"<br />]                                                |
| `limitUsd`              | *number*                                                                                                              | :heavy\_minus\_sign: | New spending limit in USD                                                                                                                                                                                                                                                                                                                                                               | 75                                                                    |
| `name`                  | *string*                                                                                                              | :heavy\_minus\_sign: | New name for the guardrail                                                                                                                                                                                                                                                                                                                                                              | Updated Guardrail Name                                                |
| `resetInterval`         | [models.GuardrailInterval](/agent-sdk/typescript/api-reference/models/guardrailinterval)                              | :heavy\_minus\_sign: | Interval at which the limit resets (daily, weekly, monthly)                                                                                                                                                                                                                                                                                                                             | monthly                                                               |
