Skip to main content
POST
Create a new policy

Authorizations

X-Bunker-Token
string
header
required

API token for authentication

Body

application/json
policyname
string
required

Name of the policy

policy
object
required

Policy definition

policydesc
string

Description of the policy

request_metadata
object

Additional metadata for the request

Response

Policy created successfully

status
string
Example:

"ok"

policyid
integer

ID of the created policy