PUT
/
v0
/
tags
/
rules
/
{tag_rule_id}
curl --request PUT \
  --url https://api.sandbox.teal.dev/v0/tags/rules/{tag_rule_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'teal-instance-id: <teal-instance-id>' \
  --data '{
  "name": "Tag gas expense",
  "tag_id": "Tag gas expense",
  "expression": "t.description == '\''SHELL GAS'\''",
  "priority": 10
}'
"<any>"

Authorizations

Authorization
string
header
required

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

Headers

teal-instance-id
string
required

The teal instance ID

Path Parameters

tag_rule_id
string
required

The tag ID

Body

application/json
name
string | null

An arbitrary string, useful for identifying the tag rule.

Example:

"Tag gas expense"

tag_id
string | null

An arbitrary string, useful for identifying the tag rule.

Example:

"Tag gas expense"

expression
string | null

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

Example:

"t.description == 'SHELL GAS'"

priority
integer | null

The priority of the rule.

Example:

10

Response

201
application/json
Successful Response

The response is of type any.