Creates New Policy
Last updated
POST /policies/push
Creates a new policy asynchronously. Returns a task ID immediately; poll GET /tasks/{taskId} for the result.
Authentication: Bearer token required (Authorization: Bearer <token>)
Permission: Permissions.POLICIES_POLICY_CREATE
{
"name": "iREC Policy",
"version": "1.0.0",
"description": "iREC standard policy",
"config": {}
}The request body is the full policy configuration object.
Status: 202 Accepted
Poll GET /tasks/{taskId} to retrieve the result.
401 Unauthorized
Missing or invalid token
403 Forbidden
Insufficient permissions
500 Internal Server Error
Unexpected server failure
Last updated
{
"taskId": "63e3e5e8a01b3c001234abcd",
"expectation": "Create policy"
}