Edit Backup Resource Monthly Auto Backup Preset

To edit a monthly auto backup preset, use the following request: 

PUT /settings/backups/resources/:resource_id/auto_backup_presets/:auto_backup_preset_id.xml
PUT /settings/backups/resources/:resource_id/auto_backup_presets/:auto_backup_preset_id.json

XML Request Example

curl -i -X PUT -H 'Accept: application/xml' -H 'Content-type: application/xml' -u user:userpass --url http://onapp.test/settings/backups/resources/11/auto_backup_presets/45.xml -d '<auto_backup_preset><resource_id type="integer">11</resource_id><day_to_run_on type="integer">1</day_to_run_on><week_to_run_on type="integer">1</week_to_run_on><max_recovery_points type="integer">1</max_recovery_points><start_time>2000-01-01T11:48:00Z</start_time></auto_backup_preset>'

JSON Request Example

curl -i -X PUT -H 'Accept: application/json' -H 'Content-type: application/json' -u user:userpass --url http://onapp.test/settings/backups/resources/11/auto_backup_presets/45.json -d '{"auto_backup_preset":{"resource_id": 11,"day_to_run_on": 1,"week_to_run_on": 1,"max_recovery_points": 1,"start_time": "2000-01-01T11:48:00Z"}}'

Where: 

auto_backup_preset - the array of auto backup preset parameters

resource_id* - the ID of the backup resource for which the auto backup preset is configured

day_to_run_on* - the day when the auto backup preset is run. For example, set 0 to run the auto backup preset on Sunday, 1 - Monday, 2 - Tuesday, 3 - Wednesday, 4 - Thursday, 5 - Friday, or 6 - Saturday.

week_to_run_on* - the week when the auto backup preset is run. For example, set 0 to run the auto backup preset on the first week of the month, 1 - the second week, 2 - the third week, or 3 - the fourth week.

max_recovery_points - the maximum number of recovery points created for VS

start_time - the start time for running the auto backup preset in the [YYYY][MM][DD]T[hh][mm][ss] format