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
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
id | string | :heavy_check_mark: | The unique identifier of the guardrail to update | 550e8400-e29b-41d4-a716-446655440000 |
requestBody | operations.UpdateGuardrailRequestBody | :heavy_check_mark: | N/A | {"name": "Updated Guardrail Name","description": "Updated description","limit_usd": 75,"reset_interval": "weekly"} |