Skip to main content
Create 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.

Body

application/json
name
string
required

Ends in .py, such as guard.py.

source
string
required

The policy's Python program, up to 64 KiB.

Response

Created

name
string
required
source
string
required