Update a preset's name or clauses
Partial patch. Each clause replacement is optional; an absent clause is left unchanged. Use the explicit clear_guardrail / clear_budget / clear_rate_limit flags to remove a clause — null body fields are NOT interpreted as clears.
Requires the policy:write scope.
Anthropic-style API key header.
In: header
Path Parameters
Id of the target namespace. Must be owned by the caller (or equal a namespace-baked credential's own namespace), else 404.
Surrogate id of the policies row.
Request Body
application/json
Preset patch.
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X PUT "https://api.bitrouter.ai/v1/namespaces/string/presets/string" \ -H "Content-Type: application/json" \ -d '{}'{
"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?