Create a new rule from the file
POST /api/v1/schema-rules/{policyId}/import/file
Imports new schema rules from a ZIP file into the local database under the specified policy.
Authentication: Bearer token required (Authorization: Bearer <token>)
Permission: Permissions.SCHEMAS_RULE_CREATE
Request
Path Parameters
Parameter
Type
Required
Description
policyId
string
Yes
Policy identifier (MongoDB ObjectId) to import rules into
Request Body
A binary ZIP file containing the schema rule configuration to be imported.
Field
Type
Required
Description
(binary body)
zip
Yes
ZIP file containing the exported schema rule
Response
Success Response
Status: 201 Created
Error Responses
Status
Description
401 Unauthorized
Missing or invalid token
403 Forbidden
Insufficient permissions
422 Unprocessable Entity
ZIP file is missing or corrupt
500 Internal Server Error
Unexpected server failure
PreviousRetrieve all the data needed for evaluating the rules
NextLoad the file and return its preview
Last updated
Was this helpful?