For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

Was this helpful?