cURL
curl --request POST \ --url https://api.sandbox.teal.dev/v0/tags/rules \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'teal-instance-id: <teal-instance-id>' \ --data '{ "name": "Tag gas expense", "tag_id": "NCB2xo5S1yQbNgyWskXpwG", "expression": "t.description == '\''SHELL GAS'\''", "priority": 10 }'
{ "id": "yB2xokXpQb5S1NgyWsNCwG", "name": "Tag gas expense", "tag_id": "NCB2xo5S1yQbNgyWskXpwG", "expression": "t.description == 'SHELL GAS'", "priority": 10 }
Creates a new tag rule for an existing instance.
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