Categorization
Create an Instance rule
Creates a new Instance categorization rule.
POST
/
v0
/
categorization
/
rules
Authorizations
Authorization
string
headerrequiredThe access token received from the authorization server in the OAuth 2.0 flow.
Headers
teal-instance-id
string
requiredThe Teal instance ID
Body
application/json
expression
string
requiredA 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
requiredThe name of the destination ledger.
name
string
requiredAn arbitrary string to name the rule.
priority
integer
requiredThe priority of the rule.
Response
201 - application/json
id
string
requiredThe unique ID of the object.
expression
string
requiredA 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
requiredThe name of the destination ledger.
name
string
requiredAn arbitrary string to name the rule.
priority
integer
requiredThe priority of the rule.