UpdateGuardrailRequest - TypeScript SDK

UpdateGuardrailRequest type definition

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

Example Usage

1import { UpdateGuardrailRequest } from "@openrouter/sdk/models";
2
3let value: UpdateGuardrailRequest = {};

Fields

FieldTypeRequiredDescriptionExample
namestringNew name for the guardrailUpdated Guardrail Name
descriptionstringNew description for the guardrailUpdated description
limitUsdnumberNew spending limit in USD75
resetIntervalmodels.UpdateGuardrailRequestResetIntervalN/Amonthly
allowedProvidersstring[]New list of allowed provider IDs[
“openai”,
“anthropic”,
“deepseek”
]
ignoredProvidersstring[]List of provider IDs to exclude from routing[
“azure”
]
allowedModelsstring[]Array of model identifiers (slug or canonical_slug accepted)[
“openai/gpt-5.2”
]
enforceZdrbooleanWhether to enforce zero data retentiontrue