TypeScript SDKOperations

UpdateGuardrailRequestBody - TypeScript SDK

UpdateGuardrailRequestBody method reference

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

Example Usage

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

Fields

FieldTypeRequiredDescriptionExample
namestringNew name for the guardrailUpdated Guardrail Name
descriptionstringNew description for the guardrailUpdated description
limitUsdnumberNew spending limit in USD75
resetIntervaloperations.UpdateGuardrailResetIntervalRequestInterval at which the limit resets (daily, weekly, monthly)monthly
allowedProvidersstring[]New list of allowed provider IDs[
“openai”,
“anthropic”,
“deepseek”
]
allowedModelsstring[]Array of model identifiers (slug or canonical_slug accepted)[
“openai/gpt-5.2”
]
enforceZdrbooleanWhether to enforce zero data retentiontrue