Create a custom field rule

Create a new custom field rule. A rule matches only when all of its conditions match, and an empty list of conditions matches everything. When a rule matches, the custom fields in visibilityEntries are shown, and required if the entry is set as required.

Body Params

Create a custom field rule

string
enum
required

Custom field rule type.

  • VISIBILITY: Shows the custom fields in visibilityEntries when the rule matches.
  • FILTER: Not supported yet. A request with this type is rejected.
Allowed:
conditions
array of objects
required

Conditions of the rule. The rule matches only when all conditions match. An empty list matches everything.

conditions*
visibilityEntries
array of objects

Custom fields that the rule shows. Required, and must have at least one entry, for VISIBILITY rules.

visibilityEntries
Headers
string | null

Access token for Spend & Expense API authentication

Responses

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json