rules

Update existing rule.

Update existing rule.

put/v1/rules/{id}

Path parameters

idstring required
Example:123

The ID of the object.

Headers

X-Trace-Idstring uuid
Example:40c71bbb-c676-4f24-83cf-cc725d7d7a00

Unique identifier associated with this request.

Request body

titlestring string
descriptionstring string
rule_group_idstring string

ID of the rule group under which the rule must be stored. Either this field or rule_group_title is mandatory.

orderinteger
trigger'store-journal' | 'update-journal' | 'manual-activation' string

Which action is necessary for the rule to fire? Use either store-journal, update-journal or manual-activation.

activeboolean

Whether or not the rule is even active. Default is true.

strictboolean

If the rule is set to be strict, ALL triggers must hit in order for the rule to fire. Otherwise, just one is enough. Default value is true.

stop_processingboolean

If this value is true and the rule is triggered, other rules after this one in the group will be skipped. Default value is false.

Example request

{
  "title": "First rule title.",
  "description": "First rule description",
  "rule_group_id": "81",
  "order": 5,
  "trigger": "store-journal",
  "active": true,
  "strict": true,
  "triggers": [
    {
      "type": "user_action",
      "value": "tag1",
      "order": 5,
      "active": true
    }
  ],
  "actions": [
    {
      "type": "set_category",
      "value": "Daily groceries",
      "order": 5,
      "active": true
    }
  ]
}

Response

Updated rule stored, result in response

Changes

No recorded changes to this endpoint across all 1 revision of this API.