Change the backup settings
What is left out stays; location is given whole (an S3 location’s secret key is write-only: a value sets it, null removes it, left out keeps it). A change applies at the backup service’s next pass, without a restart. Recorded as backup-settings.update with the old and new values (the S3 secret key only as set, replaced or removed). Needs admin.backups (403 forbidden otherwise).
bearerAuthorizationBearer <JWT>A service account's token (ccms_sat_…, issued by POST /service-accounts/{id}/tokens), or, for local use and demo mode, the server's shared CCMS_API_TOKEN.
X-Ccms-User?stringDemo mode only (CCMS_AUTH_MODE=demo): the user ID to act as. The bearer token is still required; without demo mode the header is refused (400).
application/vnd.api+json- body
data*application/vnd.api+json- response
data*The instance’s backup settings (#529), as the page sets them and with what the backup service’s environment fixes in their place.
curl -X PATCH 'http://localhost:3000/backup-settings' \ -H 'Content-Type: application/vnd.api+json' \ -d '{ "data": { "type": "BackupSettings", "id": "instance" }}'{ "data": { "type": "BackupSettings", "id": "string", "attributes": { "enabled": true, "frequency": { "kind": "daily" }, "time": "string", "timeZone": "string", "retention": { "daily": 0, "weekly": 0, "monthly": 0 }, "location": { "kind": "local", "subfolder": "string" }, "verify": true, "verifyByDecrypting": true }, "meta": { "fixed": { "property1": "string", "property2": "string" }, "schedule": "string", "nextRuns": [ "2019-08-24T14:15:22Z" ], "service": { "running": true, "lastSeenAt": "2019-08-24T14:15:22Z" }, "key": { "fingerprint": "string", "recipient": "string", "createdAt": "2019-08-24T14:15:22Z", "identityKept": true, "fixedBy": "string" }, "updatedAt": "2019-08-24T14:15:22Z" } }}