BitRouterBitRouter.
Get API Key
Management

Update a budget's name, window, or limit

Partial patch. Each field is optional; absent fields are left unchanged. A non-positive limit_micro_usd is refused.

Requires the policy:write scope.

PUT
/v1/namespaces/{nsid}/budgets/{id}

Authorization

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.

id*string

Surrogate id of the policies row.

Request Body

application/json

Budget 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/budgets/string" \  -H "Content-Type: application/json" \  -d '{}'
{
  "disabled_at": "2019-08-24T14:15:22Z",
  "id": "string",
  "limit_micro_usd": 0,
  "name": "string",
  "window": null
}
{
  "error": null
}
{
  "error": null
}
{
  "error": null
}

How is this guide?