UpdateGuardrailRequest - Go SDK
UpdateGuardrailRequest type definition
The Go SDK and docs are currently in beta. Report issues on GitHub.
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
Name | *string | ➖ | New name for the guardrail | Updated Guardrail Name |
Description | optionalnullable.OptionalNullable[string] | ➖ | New description for the guardrail | Updated description |
LimitUsd | *float64 | ➖ | New spending limit in USD | 75 |
ResetInterval | optionalnullable.OptionalNullable[components.GuardrailInterval] | ➖ | Interval at which the limit resets (daily, weekly, monthly) | monthly |
AllowedProviders | optionalnullable.OptionalNullable[[]string] | ➖ | New list of allowed provider IDs | [ “openai”, “anthropic”, “deepseek” ] |
IgnoredProviders | optionalnullable.OptionalNullable[[]string] | ➖ | List of provider IDs to exclude from routing | [ “azure” ] |
AllowedModels | optionalnullable.OptionalNullable[[]string] | ➖ | Array of model identifiers (slug or canonical_slug accepted) | [ “openai/gpt-5.2” ] |
EnforceZdr | optionalnullable.OptionalNullable[bool] | ➖ | Whether to enforce zero data retention | true |