Skip to main content
PATCH
https://api.linquid.io
/
rules
/
{id}
Update Rule
curl --request PATCH \
  --url https://api.linquid.io/rules/{id} \
  --header 'Authorization: Bearer <token>'

Update Rule

Update an existing rule.

Request

curl -X PATCH https://api.linquid.io/rules/rule_abc123 \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "priority": 90,
    "enabled": false
  }'

Path Parameters

ParameterTypeDescription
idstringRule ID

Body Parameters

All fields are optional.
ParameterTypeDescription
namestringRule name
conditionsobjectMatch conditions
destinationUrlstringRedirect destination
prioritynumberPriority (1-100)
enabledbooleanActive status
deepLinkEnabledbooleanEnable deep links
deepLinkIosstringiOS URL scheme
deepLinkAndroidstringAndroid intent
deepLinkFallbackUrlstringFallback URL
The rule type cannot be changed after creation.

Response

{
  "success": true,
  "data": {
    "id": "rule_abc123",
    "priority": 90,
    "enabled": false,
    "updatedAt": "2024-01-15T16:00:00Z"
  }
}