UpdateGuardrailRequest - Go SDK

UpdateGuardrailRequest type definition

The Go SDK and docs are currently in beta. Report issues on GitHub.

Fields

FieldTypeRequiredDescriptionExample
Name*stringNew name for the guardrailUpdated Guardrail Name
Descriptionoptionalnullable.OptionalNullable[string]New description for the guardrailUpdated description
LimitUsd*float64New spending limit in USD75
ResetIntervaloptionalnullable.OptionalNullable[components.GuardrailInterval]Interval at which the limit resets (daily, weekly, monthly)monthly
AllowedProvidersoptionalnullable.OptionalNullable[[]string]New list of allowed provider IDs[
“openai”,
“anthropic”,
“deepseek”
]
IgnoredProvidersoptionalnullable.OptionalNullable[[]string]List of provider IDs to exclude from routing[
“azure”
]
AllowedModelsoptionalnullable.OptionalNullable[[]string]Array of model identifiers (slug or canonical_slug accepted)[
“openai/gpt-5.2”
]
EnforceZdroptionalnullable.OptionalNullable[bool]Whether to enforce zero data retentiontrue