Skip to main content
PUT
Update a tag rule

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer , where is your auth token.

Headers

teal-instance-id
string
required

The teal instance ID

modified-by
string | null

An optional identifier for audit logging.

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 pattern matching expression using the match(pattern, field) function. Use t to access the Transaction object. The pattern supports regular expression syntax.

Read more: Categorization guide

Example:

"match(\".*(?i)SHELL GAS\", t.description)"

priority
integer | null

The priority of the rule.

Example:

10

Response

Successful Response