Send only the fields you want to change; omitted fields keep their stored values. For example, {"is_enabled": false} pauses a monitor and leaves everything else as is. null clears description. null for a setting that belongs only to other detection types is accepted and changes nothing; null on any other field returns 422. group_by accepts at most one Dimension. System monitors accept only threshold, is_enabled, and cost_type. For what each cost_type value measures, see Cost Types.
A monitor's type is fixed when it's created, so detection_type isn't accepted here and sending it returns 422; to change the type, create a new monitor. Updating a Threshold, Trend, or Forecast monitor needs the preview for its type, as on create; without it the call returns 422.
On a Threshold monitor, warning_levels replaces the stored levels, follows the same rules as on create (whole numbers from 1 to 99, no repeats, at most five, above only), and [] clears them. null for warning_levels returns 422 on a Threshold monitor and changes nothing on other types; levels on any other type return 422. Changing threshold_trigger_value on a monitor with warning levels doesn't open a new incident; without warning levels, it does.
Returns 404 if the monitor does not exist or belongs to another organization. Returns 409 if the change would give the monitor the same detection_type and type settings, filter_set, group_by, threshold, and cost_type as another monitor; error.existing_id names that monitor. Paused monitors count as a match and deleted monitors don't. A change to only monitor_name, description, or is_enabled never returns 409. Also returns 409, without existing_id, if another save changed the monitor while this one was in progress; re-read the monitor and retry. This can happen only when the update changes threshold_trigger_value on a Threshold monitor with warning levels.
CloudZero records the change in the activity log, attributed to "Set via API", after saving it. If that log write fails, the update still applies.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||

