Create a tag rule
Creates a new tag rule for an existing instance.
Authorizations
Bearer authentication header of the form Bearer , where is your auth token.
Headers
The teal instance ID
An optional identifier for audit logging.
Body
An arbitrary string, useful for identifying the tag rule.
"Tag gas expense"
If the rule finds a match, the ID of the tag that will be assigned.
"NCB2xo5S1yQbNgyWskXpwG"
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
"match(\".*(?i)SHELL GAS\", t.description)"
The priority of the rule.
10
Response
Successful Response
The unique ID of the object.
"yB2xokXpQb5S1NgyWsNCwG"
An arbitrary string, useful for identifying the tag rule.
"Tag gas expense"
If the rule finds a match, the ID of the tag that will be assigned.
"NCB2xo5S1yQbNgyWskXpwG"
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
"match(\".*(?i)SHELL GAS\", t.description)"
The priority of the rule.
10