views
PATCH /v2/views/{view_id}
Changed onUpdate a single View
Request
- Base URLhttps://api.cloudzero.com
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
view_idstring required
Unique View identifier
Headers
cloudzero-idempotency-keystring
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.
cloudzero-test-keystring
If passed, the operation executes in the namespace specified by this key. Resource mutations in the namespace last for 1 hour.
Request body
Example request
{
"filter": {
"accounts": [
"123456789012"
]
},
"notifications": {
"weekly": false,
"monthly": true
}
}Response
Successful Operation
Example response
{
"view": {
"filter": {
"accounts": [
"123456789012"
]
},
"notifications": {
"weekly": false,
"monthly": true
}
}
}Changes
- info
added the new optional request property
- info
added
subschema #3to theresponse propertyallOflist for the response status - info
removed from the
response propertyallOflist for the response status
- info