Update a policy's name or spec

In-place update of a policy's name and / or spec. Kind changes are not supported — recreate the policy if the kind needs to differ.

Requires the policy:write scope.

PUT
/v1/policies/{id}

Authorization

x-api-key<token>

Anthropic-style API key header.

In: header

Request Body

application/json

Request body. See the endpoint description for shape.

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/policies/{id}" \  -H "Content-Type: application/json" \  -d '{}'
{}
{
  "error": null
}
{
  "error": null
}
{
  "error": null
}

How is this guide?