Update split rule set

Saves a new version of a split rule set. The shares list you send replaces the whole old list. Include the shares you did not change, or they are removed from the new version.

Request

PUT /api/public/split-rule-sets/{id}

URI Parameters

NameTypeDescriptionRequired
idnumberID of the rule set to updateyes

Request body

Same as Create split rule set. name and shares are required.

Response

A successful request returns a 200 OK status code with the rule set at its new version. If only name changes, the version stays the same.

Error Responses

  • 400 Bad Request: The shares fail the checks in Create split rule set
  • 404 Not Found: The rule set does not exist, or it belongs to another account
❗️

Important

A new version applies to unpaid invoices and to payments collected after you save it. Collected payments keep their old version. To stop one, hold or cancel its legs.


Did this page help you?