Rule

Update a rule

Updates a rule's attributes, constraints, and effects. applicable_model is ignored on update (immutable after creation).

patch/v1/erp/payouts/rules/{id}

Parameters

#/paths/~1v1~1erp~1payouts~1rules/get/parameters/0 — unresolved $ref
#/paths/~1v1~1erp~1payouts~1rules~1%7Bid%7D/get/parameters/1 — unresolved $ref

Request body

Schema required— unresolved $ref

Response

The updated rule.

idstring uuid required
namestring
user_idstring

The user that created the rule.

company_idstring uuid required
constraintsobject nullable

The JSON constraint tree that determines which records the rule matches.

enabledboolean
inheritableboolean

Whether child companies in the corporate group inherit this rule.

applicable_modelstring

Target model bucket the rule applies to. Defaults to tradables (payables). Set once at creation and immutable thereafter.

hiddenboolean
overrides_rule_idstring uuid nullable
inherit_overrideboolean
created_atstring date-time
updated_atstring date-time
related_partnersobject[]

Business partners referenced by the rule's constraints. Included only in the show response (via the related_partners method).

Example response

{
  "applicable_model": "tradables"
}

Changes