Skip to main content
PUT
/
virtual_tag_configs
/
{token}
Update virtual tag config
curl --request PUT \
  --url https://api.vantage.sh/v2/virtual_tag_configs/{token} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "key": "<string>",
  "overridable": true,
  "backfill_until": "2023-12-25",
  "collapsed_tag_keys": [
    {
      "key": "<string>",
      "providers": [
        "<string>"
      ]
    }
  ],
  "values": [
    {
      "filter": "<string>",
      "name": "<string>",
      "business_metric_token": "<string>",
      "cost_metric": {
        "filter": "<string>",
        "aggregation": {
          "tag": "<string>"
        }
      },
      "percentages": [
        {
          "value": "<string>",
          "pct": 123
        }
      ]
    }
  ]
}
'
{
  "token": "vtag_4430add8b8552a32",
  "created_by_token": "usr_c3dedc15ebe12e03",
  "key": "team",
  "overridable": true,
  "backfill_until": "2024-07-01",
  "values": [
    {
      "filter": "costs.provider = 'aws' AND costs.service = 'Amazon Elastic Compute Cloud' AND\ncosts.account_id IN ('1234', '5678')\n",
      "name": "marketing"
    },
    {
      "filter": "((costs.provider = 'aws' AND costs.account_id IN ('1234', '5678')) OR\n(costs.provider = 'gcp' AND costs.service = 'Google Compute Engine'))\n",
      "name": "third-party integrations"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Path Parameters

token
string
required

Body

application/json

Updates an existing VirtualTagConfig.

key
string

The key of the VirtualTagConfig.

overridable
boolean | null

Whether the VirtualTagConfig can override a provider-supplied tag on a matching Cost.

backfill_until
string<date> | null

The earliest month the VirtualTagConfig should be backfilled to.

collapsed_tag_keys
object[]

Tag keys to collapse values for.

values
object[]

Values for the VirtualTagConfig, with match precedence determined by order in the list.

Response

VirtualTagConfig model

token
string

The token of the VirtualTagConfig.

Example:

"vtag_1234"

created_by_token
string

The token of the Creator of the VirtualTagConfig.

Example:

"usr_1234"

key
string

The key of the VirtualTagConfig.

Example:

"Cost Center"

overridable
boolean

Whether the VirtualTagConfig can override a provider-supplied tag on a matching Cost.

backfill_until
string

The earliest month VirtualTagConfig should be backfilled to.

Example:

"2025-07-01"

collapsed_tag_keys
object[]

Tag keys to collapse values for.

values
object[]

Values for the VirtualTagConfig, with match precedence determined by their relative order in the list.