cURL
curl --request POST \ --url https://api.sandbox.teal.dev/v0/categorization/rules \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'teal-instance-id: <teal-instance-id>' \ --data '{ "expression": "t.description == '\''SHELL GAS'\''", "ledger_name": "Fuel Expenses", "name": "Shell to Fuel Expenses", "priority": "100" }'
{ "id": "N6ntpvTtiA4L31vVyVat5n", "expression": "t.description == 'SHELL GAS'", "ledger_name": "Fuel Expenses", "name": "Shell to Fuel Expenses", "priority": "100" }
Creates a new Instance categorization rule.
The access token received from the authorization server in the OAuth 2.0 flow.
The Teal instance ID
Successful Response
The response is of type object.
object