Reorder rules by updating priorities

POSThttps://app.speybooks.com/api/v1/categorisation-rules/reorder

Bulk-updates the priority of multiple rules in a single request. Accepts an array of { id, priority } pairs, applied atomically. Priority values range from 0 to 999, and higher values are evaluated first.

Body parameters

rulesarray<object>required
Show child parameters
idintegerrequired
Rule ID.
priorityintegerrequired
New priority (0-999). Higher = evaluated first.

Response

200Number of rules updated.
Show response fields
updatedinteger

Error codes

400Invalid rules array or priority values.