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).
Path parameters
idintegerrequiredRule ID (numeric, not prefixed).
Body parameters
activebooleanoptionalWhether the rule is active.
descriptionstringoptionalRule description (max 500 characters).
fieldstringoptionalTransaction field to match against.
descriptioncontact_nameamountreferencemetadata.categorymetadata.projectmetadata.departmentmetadata.tagnamestringoptionalRule display name (1-100 characters).
operatorstringoptionalMatch operator.
containsequalsstarts_withends_withgreater_thanless_thanregexpriorityintegeroptionalRule priority (0-999).
targetAccountIdstringoptionalTarget account ID (e.g. acc_4000).
valuestringoptionalValue to match (1-500 characters).
Response
200Rule updated.
Show response fields
idintegerupdatedbooleanError codes
400Validation error: invalid regex, invalid account ID.
404Rule or target account not found.