Skip to main content
PUT
/
projects
/
{projectId}
/
rules
/
{ruleId}
Update a rule
curl --request PUT \
  --url https://api.engagefabric.com/projects/{projectId}/rules/{ruleId} \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "priority": 100,
  "conditions": {},
  "actions": [
    "<string>"
  ],
  "status": "DRAFT",
  "isActive": true,
  "metadata": {}
}
'

Path Parameters

projectId
string
required
ruleId
string
required

Body

application/json
name
string

Rule name

Maximum string length: 255
description
string

Rule description

priority
number
default:100

Priority (lower = higher priority)

conditions
object

Conditions tree (JSON)

actions
string[]

Actions list (JSON array)

status
enum<string>

Rule status

Available options:
DRAFT,
TESTING,
PUBLISHED,
ARCHIVED
isActive
boolean
default:true

Whether the rule is active

metadata
object

Additional metadata

Response

Rule updated successfully