/v2/views/{view_id}

Update a View

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

Unique View identifier

Body Params
string

View name

filter
object

Filter mapping of dimension name to allowed values

connections
object

Contains the connections that will receive notifications for this view

string

primary group by dimension for the view

anomalies
object
deprecated

Deprecated. Starting December 1, 2026, as each organization moves to Monitors, anomalies is accepted on create and update but not applied, and it does not change anomaly detection. A new view gets the default (threshold_type: Automatic, enabled: false); an update leaves the stored value unchanged. Responses still include anomalies until the field is removed on January 1, 2027. Use the Monitors API (/v2/monitors) to configure anomaly detection and the Incidents API (/v2/incidents) to read detected anomalies.

Legacy behavior (organizations not yet on Monitors): these fields configure anomaly detection for the view. Anomalies are detected by comparing the cost of a given day to the cost of the previous day. If the cost of the current day is greater than or equal to the threshold, an anomaly event is generated and sent to the view's configured connections.

notifications
object

Enabled flags for the view's weekly and monthly spend trend notifications. These do not control anomaly notifications; configure those with the Monitors API (/v2/monitors). Both default to true. Send only the fields to set. Omitted fields keep their current value (true for a new view), and updating other view fields never changes them. The create response reports the view's actual settings.

string
enum

This field is optional. shared on a personal view promotes it to shared and leaves owner and created_by unchanged. personal on a shared view returns 400 (Invalid request parameters: a shared view cannot be changed to personal). personal on Global View returns 400 (Invalid request parameters: Global View cannot be made personal). Omit it, or send the stored value, to leave visibility unchanged.

Allowed:
string | null

Ignored if sent. An update does not change created_by.

string | null

Ignored if sent. An update does not change owner.

string | null

Ignored if sent. An update does not change source_view_id.

Headers
string

If passed, any subsequent operation with the same value for this header will return the exact same result.
This is true for all responses, i.e. successes and errors.

string

If passed, the operation executes in the namespace specified by this key.
Resource mutations in the namespace last for 1 hour.

Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json