Update policy by ID
PATCH {{base_url}}/api/policy_management/v4/policies/{{policy_id}}
Request Body
{"subject"=>{"policy"=>[{"id"=>"8b1ceb42-3e82-4c91-81fe-5e8617b58811", "created_at"=>"2022-07-01T13:02:45.743851712Z", "updated_at"=>"2022-07-19T11:26:29.475091554Z", "deleted_at"=>nil, "parent_ids"=>["1b9e50ea-d50d-4905-ad88-5862cdb7c1be"], "tenant_id"=>"1783372", "type"=>"policy.backup.machine", "name"=>"Policy Protection Total", "origin"=>"upstream", "enabled"=>true, "settings"=>{"compression"=>"normal", "format"=>"auto", "ignore_bad_sectors"=>false, "multi_volume_snapshotting_enabled"=>true, "preserve_file_security_settings"=>true, "reattempts"=>{"enabled"=>true, "interval"=>{"type"=>"seconds", "count"=>30}, "max_attempts"=>30}, "silent_mode_enabled"=>true, "splitting"=>{"size"=>9223372036854775807}, "vm_snapshot_reattempts"=>{"enabled"=>true, "interval"=>{"type"=>"minutes", "count"=>5}, "max_attempts"=>3}, "vss"=>{"enabled"=>true, "provider"=>"target_system_defined", "vss_full_backup_enabled"=>false}, "archive"=>{"comments"=>"", "display_name"=>"", "name"=>"[Machine Name]-[Plan ID]-[Unique ID]A", "slice_comments"=>""}, "consolidation_enabled"=>nil, "encryption_enabled"=>false, "performance_window"=>{"enabled"=>true, "presets"=>[{"disk_limit"=>{"value"=>0, "type"=>"percent"}, "id"=>"high", "network_limit"=>{"value"=>0, "type"=>"percent"}, "timetable"=>[{"time_from"=>{"hour"=>0, "minute"=>0}, "time_to"=>{"hour"=>23, "minute"=>59, "second"=>59}, "days_of_week"=>["sun", "mon", "tue", "wed", "thu", "fri", "sat"]}]}, {"cpu_priority"=>"low", "disk_limit"=>{"value"=>25, "type"=>"percent"}, "id"=>"low", "network_limit"=>{"value"=>25, "type"=>"percent"}, "timetable"=>nil}]}, "retention"=>{"rules"=>[{"backup_set"=>["daily"], "max_age"=>{"type"=>"days", "count"=>7}}, {"backup_set"=>["weekly"], "max_age"=>{"type"=>"weeks", "count"=>4}}, {"backup_set"=>["monthly"], "max_age"=>{"type"=>"months", "count"=>6}}], "after_backup"=>true, "before_backup"=>false, "retain_initial"=>nil}, "replication_enabled"=>nil, "validation_enabled"=>false, "vault"=>{"uri"=>"", "local"=>false, "type"=>"cloud", "vault_manager_type"=>nil, "use_policy_credentials"=>true, "display_name"=>"", "script"=>nil}, "alerts"=>{"enabled"=>true, "max_days_without_backup"=>2}, "email_notifications"=>{"enabled"=>false, "reattmpts"=>{"enabled"=>true, "interval"=>{"type"=>"seconds", "count"=>30}, "max_attempts"=>30}, "subject"=>"", "batching"=>{"enabled"=>false, "timeout"=>{"type"=>"seconds", "count"=>720}}}, "owner_id"=>"50bd6afa-dd9a-0af3-f2ca-6340fe096c69", "scheduling"=>{"backup_sets"=>[{"type"=>"auto", "schedule"=>{"alarms"=>{"time"=>{"weekdays"=>["mon", "tue", "wed", "thu", "fri"], "repeat_at"=>[{"hour"=>20, "minute"=>0}]}}, "conditions"=>{"device_present"=>nil}, "prevent_sleep"=>true, "type"=>"weekly"}}], "enabled"=>true, "max_parallel_backups"=>2, "rand_max_delay"=>{"type"=>"minutes", "count"=>30}, "scheme"=>"always_incremental", "task_failure"=>{"enabled"=>false, "interval"=>{"type"=>"hours", "count"=>1}, "max_attempts"=>1}, "weekly_backup_day"=>"mon"}, "windows_event_log"=>{"enabled"=>false, "level"=>"errors_and_warnings"}, "cbt"=>"enable_and_use", "check_file_timestamp"=>false, "exclude_asz"=>false, "exclude_page_files"=>false, "fast_backup_enabled"=>true, "lvm_snapshotting_enabled"=>false, "reset_free_blocks_list"=>false, "sector_by_sector_enabled"=>false, "quiesce_snapshotting_enabled"=>true}, "settings_schema"=>"2.0", "template_source_id"=>"", "plan_hash"=>"23BAE759-D63E-77D1-C9E7-EAEF6150ED50", "source_type"=>"machines", "days_without_backup_alert"=>nil, "ls_features"=>""}]}}