Skip to main content
PUT
/
financial_commitment_reports
/
{financial_commitment_report_token}
Update financial commitment report
curl --request PUT \
  --url https://api.vantage.sh/v2/financial_commitment_reports/{financial_commitment_report_token} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "title": "<string>",
  "filter": "<string>",
  "start_date": "2024-03-01",
  "end_date": "2024-03-01",
  "date_interval": "this_month",
  "date_bucket": "hour",
  "on_demand_costs_scope": "discountable",
  "groupings": [
    "<string>"
  ]
}
'
{
  "token": "fncl_cmnt_rprt_38f1d3fcee354f6a",
  "title": "new title",
  "default": false,
  "created_at": "2025-01-27T21:42:06Z",
  "workspace_token": "wrkspc_358df7afe2a742fb",
  "user_token": null,
  "start_date": "2024-10-01",
  "end_date": "2025-01-25",
  "date_interval": "last_3_months",
  "date_bucket": "week",
  "groupings": "cost_type,commitment_type",
  "on_demand_costs_scope": "discountable",
  "filter": "(financial_commitments.provider = 'aws')"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

financial_commitment_report_token
string
required

Body

application/json

Update a FinancialCommitmentReport.

title
string

The title of the FinancialCommitmentReport.

filter
string

The filter query language to apply to the FinancialCommitmentReport. Additional documentation available at https://docs.vantage.sh/vql.

start_date
string<date>

The start date of the FinancialCommitmentReport. YYYY-MM-DD formatted. Incompatible with 'date_interval' parameter.

Example:

"2024-03-01"

end_date
string<date>

The end date of the FinancialCommitmentReport. YYYY-MM-DD formatted. Incompatible with 'date_interval' parameter.

Example:

"2024-03-01"

date_interval
enum<string>

The date interval of the FinancialCommitmentReport. Unless 'custom' is used, this is incompatible with 'start_date' and 'end_date' parameters. Defaults to 'last_3_months'.

Available options:
this_month,
last_7_days,
last_30_days,
last_month,
last_3_months,
last_6_months,
custom,
last_12_months,
last_24_months,
last_36_months,
year_to_date,
last_3_days,
last_14_days
date_bucket
enum<string>

The date bucket of the FinancialCommitmentReport.

Available options:
hour,
day,
week,
month
on_demand_costs_scope
enum<string>

The scope for the costs. Possible values: discountable, all.

Available options:
discountable,
all
groupings
string[]

Grouping values for aggregating costs on the FinancialCommitmentReport. Valid groupings: cost_type, commitment_type, service, resource_account_id, provider_account_id, region, cost_category, cost_sub_category, instance_type, tag, tag:<label_name>.

Response

FinancialCommitmentReport model

token
string
title
string

The title of the FinancialCommitmentReport.

Example:

"Acme123 Financial Commitment Report"

default
boolean

Indicates whether the FinancialCommitmentReport is the default report.

created_at
string

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

Example:

"2024-03-19T00:00:00Z"

workspace_token
string

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

user_token
string

The token for the User who created this FinancialCommitmentReport.

start_date
string

The start date for the FinancialCommitmentReport. Only set for custom date ranges. ISO 8601 Formatted.

Example:

"2024-03-01"

end_date
string

The end date for the FinancialCommitmentReport. Only set for custom date ranges. ISO 8601 Formatted.

Example:

"2024-03-20"

date_interval
string

The date range for the FinancialCommitmentReport. Only present if a custom date range is not specified.

Example:

"last_month"

date_bucket
string

How costs are grouped and displayed in the FinancialCommitmentReport. Possible values: day, week, month.

Example:

"month"

groupings
string

The grouping aggregations applied to the filtered data.

Example:

"cost_type, tag:account"

on_demand_costs_scope
string

The scope for the costs. Possible values: discountable, all.

Example:

"discountable"

filter
string

The filter applied to the FinancialCommitmentReport. Additional documentation available at https://docs.vantage.sh/vql.