cURL
curl --request POST \ --url https://api.engagefabric.com/projects/{projectId}/rules \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "conditions": {}, "actions": [ "<string>" ], "description": "<string>", "priority": 100, "status": "DRAFT", "isActive": true, "metadata": {} } '
Rule name
255
Conditions tree (JSON)
Actions list (JSON array)
Rule description
Priority (lower = higher priority)
Rule status
DRAFT
TESTING
PUBLISHED
ARCHIVED
Whether the rule is active
Additional metadata
Rule created successfully