> ## Documentation Index
> Fetch the complete documentation index at: https://openrouter-d02e98a0-mintlify-a46887cf.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# UpdateGuardrailRequestBody - Python SDK

> UpdateGuardrailRequestBody method reference

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

## Fields

| Field               | Type                                                                                                                       | Required             | Description                                                   | Example                                                    |
| ------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------- | ------------------------------------------------------------- | ---------------------------------------------------------- |
| `name`              | *Optional\[str]*                                                                                                           | :heavy\_minus\_sign: | New name for the guardrail                                    | Updated Guardrail Name                                     |
| `description`       | *OptionalNullable\[str]*                                                                                                   | :heavy\_minus\_sign: | New description for the guardrail                             | Updated description                                        |
| `limit_usd`         | *OptionalNullable\[float]*                                                                                                 | :heavy\_minus\_sign: | New spending limit in USD                                     | 75                                                         |
| `reset_interval`    | [OptionalNullable\[operations.UpdateGuardrailResetIntervalRequest\]](../operations/updateguardrailresetintervalrequest.md) | :heavy\_minus\_sign: | Interval at which the limit resets (daily, weekly, monthly)   | monthly                                                    |
| `allowed_providers` | List\[*str*]                                                                                                               | :heavy\_minus\_sign: | New list of allowed provider IDs                              | \[<br />"openai",<br />"anthropic",<br />"deepseek"<br />] |
| `allowed_models`    | List\[*str*]                                                                                                               | :heavy\_minus\_sign: | Array of model identifiers (slug or canonical\_slug accepted) | \[<br />"openai/gpt-5.2"<br />]                            |
| `enforce_zdr`       | *OptionalNullable\[bool]*                                                                                                  | :heavy\_minus\_sign: | Whether to enforce zero data retention                        | true                                                       |
