Update policy by ID

Update policy by ID.

  • payload (PolicyUpdate): Required. The updated policy information with:
    • name (str or None): The updated name of the policy.
    • query (Query or None): The updated Cube.js query for the policy.
    • cron_expression (str or None): The updated cron expression for the policy evaluation.
    • condition_above_value (float or None): The updated condition above value.
    • condition_below_value (float or None): The updated condition below value.
    • destination_ids (list of UUID or None): The updated list of communication channels to get notified through.
    • alert_on_status (AlertOnStatusDirection or None): The updated trigger policy action if the value is above/below.
    • alert_on_policy_level (bool or None): The updated trigger policy action on a single group/entire groups.
    • dataset_id (str or None): The updated dataset this policy is monitoring.
    • time_range_field (str or None): The updated time field to scan.
    • time_range_unit (TimeRangeUnit or None): The updated time unit to scan.
    • time_range_value (int or None): The updated time value to scan.
  • policy_id (UUID): Required. The ID of the policy to be updated.
Language
Authorization
OAuth2
Click Try It! to start a request and see the response here!