Cost Reports
List cost reports
Returns all cost reports for a workspace, optionally filtered by folder.
Needs a token with viewCostReports on the workspace.
query Parameters
workspaceId^wsp_[A-Za-z0-9_-]{2… · requiredfolderIdpageThe page to return, counted from 1. A page below 1 reads page 1; one past the last returns no items.
limitItems per page, from 1 to 100. A larger value is clamped to 100, a smaller one to 1.
List cost reports › Responses
Success
Create cost report
Creates a new cost report configuration.
Needs a token with createCostReport on the workspace.
Headers
Idempotency-KeyA unique value, at most 255 printable ASCII characters, such as a UUID, that makes retrying this create safe. A retry with the same key and the same request within 24 hours answers the first response again, marked Idempotent-Replayed: true, and creates nothing; the same key with another request answers 422 idempotency_key_reused. A key is kept only for a create that succeeded. Without it, every request creates.
Create cost report › Request Body
workspaceId^wsp_[A-Za-z0-9_-]{2… · requiredtitlefilterstartDateendDatechartTypeCreate cost report › Responses
Created
id^crp_[A-Za-z0-9_-]{2… · requiredtitleGet cost report
Returns a specific cost report configuration.
Needs a token with viewCostReports on the workspace.
path Parameters
costReportId^crp_[A-Za-z0-9_-]{2… · requiredquery Parameters
workspaceId^wsp_[A-Za-z0-9_-]{2… · requiredGet cost report › Responses
Success
id^crp_[A-Za-z0-9_-]{2… · requiredtitledateIntervalchartTypechartAxisdateBincreatedAtisDefaultfilterstartDateendDateupdatedAtUpdate cost report
Updates a cost report configuration.
Needs a token with updateCostReport on the workspace.
path Parameters
costReportId^crp_[A-Za-z0-9_-]{2… · requiredquery Parameters
workspaceId^wsp_[A-Za-z0-9_-]{2… · requiredHeaders
If-MatchApplies the write only while the resource still has this ETag, and answers 412 precondition_failed otherwise. Without it, the last write wins.
Update cost report › Request Body
titleclearFolderfilterclearFilterstartDateclearStartDateendDateclearEndDateUpdate cost report › Responses
Success
id^crp_[A-Za-z0-9_-]{2… · requiredtitledateIntervalchartTypechartAxisdateBincreatedAtisDefaultfilterstartDateendDateupdatedAtDelete cost report
Deletes a cost report, removes the dashboard widgets that show it and deactivates its subscriptions. Refused with 409 in_use, naming the budgets, while a budget measures it, and with 422 for the workspace's default report.
Needs a token with deleteCostReport on the workspace.
path Parameters
costReportId^crp_[A-Za-z0-9_-]{2… · requiredquery Parameters
workspaceId^wsp_[A-Za-z0-9_-]{2… · requiredHeaders
If-MatchApplies the write only while the resource still has this ETag, and answers 412 precondition_failed otherwise. Without it, the last write wins.
Delete cost report › Responses
No Content
Get cost report data
Returns the computed cost data for a report. A breakdown row's percent is its share of the window's total cost; with conversion off over several currencies, of the total in its own currency.
Needs a token with viewCosts on the workspace for every report, and viewCostReports too for a report that charts a business metric.
path Parameters
costReportId^crp_[A-Za-z0-9_-]{2… · requiredquery Parameters
workspaceId^wsp_[A-Za-z0-9_-]{2… · requiredGet cost report data › Responses
Success
startDateendDatehistoryFloordataThrough