Skip to main content
PUT
Update policy
See error examples and recovery steps. The complete OpenAPI contract includes every response schema.

Authorizations

Authorization
string
header
required

The server's token (MIRAGE_AUTH_TOKEN) or a JWT. A daemon in the default local mode with no token accepts requests without one.

Path Parameters

ref
string
required

Policy name, such as guard.py.

Body

application/json
source
string
required

The new program, up to 64 KiB.

Response

200 - application/json

OK

name
string
required
source
string
required