Annotations
List annotations
Returns the workspace's annotations by date, open ones unless includeResolved is set. An unknown costReportId answers 404.
Needs a token with viewCostReports on the workspace.
query Parameters
workspaceId^wsp_[A-Za-z0-9_-]{2… · requiredcostReportIdstartDateendDateincludeResolvedpageThe 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 annotations › Responses
Success
Create annotation
Pins a dated note to one to ten of the workspace's cost reports. A cost report that is not one of the workspace's answers 404 naming it.
Needs a token with updateCostReport 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 annotation › Request Body
workspaceId^wsp_[A-Za-z0-9_-]{2… · requireddatetextcostReportIdsCreate annotation › Responses
Created
id^ann_[A-Za-z0-9_-]{2… · requireddatesourcecostReportIdscreatedAttextsourceNamethresholdPercentresolvedAtupdatedAtGet annotation
Returns an annotation of the workspace. One whose every cost report is deleted answers 404.
Needs a token with viewCostReports on the workspace.
path Parameters
annotationId^ann_[A-Za-z0-9_-]{2… · requiredquery Parameters
workspaceId^wsp_[A-Za-z0-9_-]{2… · requiredGet annotation › Responses
Success
id^ann_[A-Za-z0-9_-]{2… · requireddatesourcecostReportIdscreatedAttextsourceNamethresholdPercentresolvedAtupdatedAtUpdate annotation
Replaces a note whole: its date, its text and its cost reports, a report left out no longer being annotated. A budget's or cost alert's annotation records what fired and is not edited.
Needs a token with updateCostReport on the workspace.
path Parameters
annotationId^ann_[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 annotation › Request Body
datetextcostReportIdsUpdate annotation › Responses
Success
id^ann_[A-Za-z0-9_-]{2… · requireddatesourcecostReportIdscreatedAttextsourceNamethresholdPercentresolvedAtupdatedAtDelete annotation
Deletes an annotation, a budget's or cost alert's included; the cost reports it stood on stay.
Needs a token with updateCostReport on the workspace.
path Parameters
annotationId^ann_[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 annotation › Responses
No Content
Reopen annotation
Shows a resolved annotation in the default list again. An open one is returned as it is.
Needs a token with updateCostReport on the workspace.
path Parameters
annotationId^ann_[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.
Reopen annotation › Responses
Success
id^ann_[A-Za-z0-9_-]{2… · requireddatesourcecostReportIdscreatedAttextsourceNamethresholdPercentresolvedAtupdatedAtResolve annotation
Hides an annotation from the default list. One already resolved is returned as it is.
Needs a token with updateCostReport on the workspace.
path Parameters
annotationId^ann_[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.
Resolve annotation › Responses
Success
id^ann_[A-Za-z0-9_-]{2… · requireddatesourcecostReportIdscreatedAttextsourceNamethresholdPercentresolvedAtupdatedAt