Create a new formula (import) from a file
POST /api/v1/formulas/{policyId}/import/file
Imports a new formula from a ZIP file and links it to the specified policy.
Authentication: Bearer token required (Authorization: Bearer <token>)
Permission: Permissions.FORMULAS_FORMULA_CREATE
Request
Path Parameters
Parameter
Type
Required
Description
policyId
string
Yes
ID of the policy to associate with the imported formula
Request Body
Binary ZIP file containing the formula export.
Content-Type: application/zip
Response
Success Response
Status: 201 Created
Error Responses
Status
Description
400 Bad Request
Malformed or missing ZIP file
401 Unauthorized
Missing or invalid token
403 Forbidden
Insufficient permissions
500 Internal Server Error
Unexpected server failure
PreviousRetrieve the list of all schemas and policies linked to a Formula
NextExport selected formulas into a file
Was this helpful?