Update backup schedule
This request changes backup schedule attributes.
Resource
PATCH /backupschedules/<OID>
Where OID
is the oid of the backup schedule
Parameters
None
Payload
Fields
Name | Patch Operations |
---|---|
maxBackups |
|
centralBackup |
|
backupType |
|
backupAllTenants (only multitenant) |
|
tenant (only multitenant) |
|
External Device |
|
externalDevice.type |
|
externalDevice.location |
|
externalDevice.usbId |
|
externalDevice.smbUserName |
|
externalDevice.smbPassword |
|
externalDevice.smbVersion |
|
externalDevice.ssl |
|
externalDevice.subDirectory |
|
externalDevice.mode |
|
Schedules List |
|
schedules |
|
schedules.day |
|
schedules.startTime |
|
Response
None
Context
Authorization |
Master |
Errors
Example
PATCH https://xelion.nl/api/v1/master/backupschedules/1627410
change backup schedule direct member
{
"operations": [
{
"op": "replace",
"path": "/maxBackups",
"value": 5
}
]
}
{
"operations": [
{
"op": "replace",
"path": "/centralBackup",
"value": false
}
]
}
{
"operations": [
{
"op": "replace",
"path": "/tenant",
"value": 2
}
]
}
change backup schedule external device member
{
"operations": [
{
"op": "replace",
"path": "/externalDevice/type",
"value": "windowsShare"
}
]
}
add new schedule to the backup schedule, first add a new object with virtual id 1 and then set the submember(s) by adding replace operations on the virtual id '1'
{
"operations": [
{
"op": "add",
"path": "/schedules/1",
},
{
"op": "replace",
"path": "/schedules/1/day",
"value": "tuesday"
}
]
}
remove schedule from backup schedule, <OID> is the oid of the schedule
{
"operations": [
{
"op": "remove",
"path": "/schedules/1726623"
}
]
}
change schedule submember, <OID> is the oid of the schedule
{
"operations": [
{
"op": "replace",
"path": "/schedules/1726623/startTime",
"value": "00:50"
}
]
}