Update Rule Status

Updates a rule’s status to ACTIVE or INACTIVE, without deleting it.

PATCH/campaigns/{campaign_id}/rules/{rule_id}/status

Path Parameters

campaign_idstringrequired

The campaign identifier (UUID).

rule_idstringrequired

The rule identifier (UUID).

Body application/json

statusstringrequired

ACTIVE or INACTIVE

Response

statusstring
Request
curl -X PATCH "https://api-sandbox.whitelabel.com/v1/campaigns/<campaign_id>/rules/<rule_id>/status" \
  -H "Content-Type: application/json" \
  -H "public-api-key: <public-api-key>" \
  -H "private-secret-key: <private-secret-key>" \
  -d '{
  "status": "string"
}'
Response
{
  "status": "ACTIVE"
}