cURL
curl --request POST \ --url https://api.sandbox.teal.dev/v0/platform/categorization/rules \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --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 Platform categorization rule.
The access token received from the authorization server in the OAuth 2.0 flow.
Successful Response
The response is of type object.
object