Skip to main content
The TypeScript SDK and docs are currently in beta. Report issues on GitHub.

Example Usage

import { UpdateGuardrailRequestBody } from "@openrouter/sdk/models/operations";

let value: UpdateGuardrailRequestBody = {};

Fields

FieldTypeRequiredDescriptionExample
namestring:heavy_minus_sign:New name for the guardrailUpdated Guardrail Name
descriptionstring:heavy_minus_sign:New description for the guardrailUpdated description
limitUsdnumber:heavy_minus_sign:New spending limit in USD75
resetIntervaloperations.UpdateGuardrailResetIntervalRequest:heavy_minus_sign:Interval at which the limit resets (daily, weekly, monthly)monthly
allowedProvidersstring[]:heavy_minus_sign:New list of allowed provider IDs[
“openai”,
“anthropic”,
“deepseek”
]
allowedModelsstring[]:heavy_minus_sign:Array of model identifiers (slug or canonical_slug accepted)[
“openai/gpt-5.2”
]
enforceZdrboolean:heavy_minus_sign:Whether to enforce zero data retentiontrue