Update categorisation rule
PATCH
https://app.speybooks.com/api/v1/categorisation-rules/{id}Updates one or more fields on an existing rule. Only the fields included in the request body are modified (partial update semantics). Emits a signal to the global aggregation pipeline on change.
Path parameters
id integer requiredRule ID (numeric, not prefixed).
Body parameters
active boolean optionalWhether the rule is active.
description string optionalRule description (max 500 characters).
field string optionalTransaction field to match against.
descriptioncontact_nameamountreferencemetadata.categorymetadata.projectmetadata.departmentmetadata.tagname string optionalRule display name (1-100 characters).
operator string optionalMatch operator.
containsequalsstarts_withends_withgreater_thanless_thanregexpriority integer optionalRule priority (0-999).
targetAccountId string optionalTarget account ID (e.g. acc_4000).
value string optionalValue to match (1-500 characters).
Response
200 Rule updated.
Show response fields
id integerupdated booleanError codes
400 Validation error: invalid regex, invalid account ID.
404 Rule or target account not found.