Skip to main content
PUT
/
recommendation_views
/
{recommendation_view_token}
Update recommendation view
curl --request PUT \
  --url https://api.vantage.sh/v2/recommendation_views/{recommendation_view_token} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "title": "<string>",
  "provider_ids": [
    "<string>"
  ],
  "billing_account_ids": [
    "<string>"
  ],
  "account_ids": [
    "<string>"
  ],
  "regions": [
    "<string>"
  ],
  "tag_key": "<string>",
  "tag_value": "<string>",
  "start_date": "<string>",
  "end_date": "<string>"
}
'
{
  "token": "rec_vw_be3f24eb1b5aabf6",
  "title": "Updated Recommendations View",
  "workspace_token": "wrkspc_be6568a301b1d06c",
  "start_date": "2024-01-01",
  "end_date": "2024-12-31",
  "provider_ids": [
    "aws",
    "gcp",
    "azure"
  ],
  "billing_account_ids": [],
  "account_ids": [
    "123456789012",
    "987654321098"
  ],
  "regions": [
    "us-east-1",
    "us-west-2",
    "ap-northeast-2"
  ],
  "tag_key": "environment",
  "tag_value": "production",
  "created_at": "2024-07-15T16:08:54Z",
  "created_by": "team_73f6001f98e9012b"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

recommendation_view_token
string
required

Body

application/json

Update a RecommendationView.

title
string

The title of the RecommendationView.

provider_ids
string[]

Filter by one or more providers (e.g. aws, gcp, azure, kubernetes, datadog).

billing_account_ids
string[]

Filter by billing account identifiers.

account_ids
string[]

Filter by cloud account identifiers.

regions
string[]

Filter by region slugs (e.g. us-east-1, eastus, asia-east1).

tag_key
string

Filter by tag key (must be used with tag_value).

tag_value
string

Filter by tag value (requires tag_key).

start_date
string

Filter recommendations created on/after this YYYY-MM-DD date.

end_date
string

Filter recommendations created on/before this YYYY-MM-DD date.

Response

RecommendationView model

token
string | null
title
string | null

The title of the RecommendationView.

Example:

"Production Recommendations"

workspace_token
string | null

The token for the Workspace the RecommendationView is a part of.

start_date
string | null

Filter recommendations created on/after this YYYY-MM-DD date.

Example:

"2024-01-01"

end_date
string | null

Filter recommendations created on/before this YYYY-MM-DD date.

Example:

"2024-12-31"

provider_ids
string[] | null

Filter by one or more providers.

billing_account_ids
string[] | null

Filter by billing account identifiers.

account_ids
string[] | null

Filter by cloud account identifiers.

regions
string[] | null

Filter by region slugs (e.g. us-east-1, eastus, asia-east1).

tag_key
string | null

Filter by tag key (must be used with tag_value).

Example:

"environment"

tag_value
string | null

Filter by tag value (requires tag_key).

Example:

"production"

created_at
string | null

The date and time, in UTC, the view was created. ISO 8601 Formatted.

Example:

"2023-08-04T00:00:00Z"

created_by
string | null

The token for the Creator of this RecommendationView.