Skip to main content
Update a policy

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

The policy's name, such as guard.py.

Body

application/json
source
string
required

The new program, up to 64 KiB.

Response

OK

name
string
required
source
string
required