POST
/
v0
/
platform
/
categorization
/
rules
Authorization
Body
curl --request POST \
  --url https://api.sandbox.teal.dev/v0/platform/categorization/rules \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "expression": "<string>",
  "ledger_name": "<string>",
  "name": "<string>",
  "priority": 123
}'
{
  "expression": "t.description == Fuel",
  "id": "N6ntpvTtiA4L31vVyVat5n",
  "ledger_name": "Fuel Expenses",
  "name": "Fuel Expenses",
  "priority": 100
}

Authorizations

Authorization
string
headerrequired

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

Body

application/json
expression
string
required

The expression to match on transactions.

ledger_name
string
required

The name of the destination ledger.

name
string
required

The name of the rule.

priority
integer
required

The priority of the rule.

Response

201 - application/json
expression
string
required
id
string
required
ledger_name
string
required
name
string
required
priority
integer
required