Management
Create a preset bundle
Creates a named bundle of sub-policies. Validation is stricter than the generic create: a rate-limit clause must declare at least one of max_requests / max_tokens, and budget.limit_micro_usd must be strictly positive.
Requires the policy:write scope.
x-api-key<token>
Anthropic-style API key header.
In: header
Path Parameters
nsid*string
Id of the target namespace. Must be owned by the caller (or equal a namespace-baked credential's own namespace), else 404.
Request Body
application/json
Preset request body.
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://api.bitrouter.ai/v1/namespaces/string/presets" \ -H "Content-Type: application/json" \ -d '{ "name": "string" }'{
"budget": null,
"disabled_at": "2019-08-24T14:15:22Z",
"guardrail": null,
"id": "string",
"name": "string",
"rate_limit": null
}{
"error": null
}{
"error": null
}{
"error": null
}How is this guide?