Set MongoDB Maintenance Windows
To update the maintenanceWindow, perform a PATCH request.
Endpoint
Use the following endpoint to update maintenance windows: https://api.ionos.com/databases/mongodb/clusters/{clusterId}
Request
curl --include \
--request PATCH \
--user "[email protected]:Mb2.r5oHf-0t" \
--header "Content-Type: application/json" \
--data-binary '{
"properties": {
"maintenanceWindow": {
"dayOfTheWeek": "Sunday",
"time": "03:30:00"
}
}
}'
https://api.ionos.com/databases/mongodb/clusters/d02de413-d5af-4104-a6f9-3a3c2766ee61Response
Last updated
Was this helpful?