POST
/
v0
/
categorization
/
rules

Authorizations

Authorization
string
headerrequired

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

teal-instance-id
string
required

The Teal instance ID

Body

application/json
expression
string
required

A comparative expression to match on Transactions. Use t to access the Transaction object. Must evaluate to a boolean. Accepts regex evaluations.

Read more: Categorization guide

ledger_name
string
required

The name of the destination ledger.

name
string
required

An arbitrary string to name the rule.

priority
integer
required

The priority of the rule.

Response

201 - application/json
id
string
required

The unique ID of the object.

expression
string
required

A comparative expression to match on Transactions. Use t to access the Transaction object. Must evaluate to a boolean. Accepts regex evaluations.

Read more: Categorization guide

ledger_name
string
required

The name of the destination ledger.

name
string
required

An arbitrary string to name the rule.

priority
integer
required

The priority of the rule.