Save new policy

Bridgecrew supports policy-as-code capabilities using YAML-based policy definition files to enable attribute and connection checks (composite checks).
Visit Prisma Cloud’s documentation to define YAML based policies -
based on our sample files -

To use the API request, add your token to the header. API supports both YAML and JSON configuration of Bridgecrew custom policy schema)

This API creates a new Bridgecrew custom policy.
The input will be a code-based policy definition file. The output will be a new policy id. In case of invalid code - output will include definition errors.
Use the example below as a reference for configuring the API request body for saving new policies.

Click Try It! to start a request and see the response here!