Edit Backup Resource Yearly Auto Backup Preset

To edit a yearly 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/:resource_id/auto_backup_presets/:auto_backup_preset_id.xml -d '<auto_backup_preset><resource_id type="integer">12</resource_id><max_recovery_points type="integer">1</max_recovery_points>'

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/:resource_id/auto_backup_presets/:auto_backup_preset_id.json -d '{"auto_backup_preset":{"resource_id": 12,"max_recovery_points": 1}}'

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

max_recovery_points - the maximum number of recovery points created for VS