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

Example Usage

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

let value: UpdateGuardrailRequest = {
  id: "550e8400-e29b-41d4-a716-446655440000",
  requestBody: {},
};

Fields

FieldTypeRequiredDescriptionExample
idstring:heavy_check_mark:The unique identifier of the guardrail to update550e8400-e29b-41d4-a716-446655440000
requestBodyoperations.UpdateGuardrailRequestBody:heavy_check_mark:N/A{"name": "Updated Guardrail Name","description": "Updated description","limit_usd": 75,"reset_interval": "weekly"}