Request an extension for a pending virtual server (VM) maintenance deadline. You need to provide the `deadlineId` obtained from the GET /api/vm/{vmid}/maintenance endpoint. This is useful if you need more time to prepare for scheduled maintenance.
path.vmid deadlineId from GET /api/vm/{vmid}/maintenance vmid integer · min: 1 required
Example: 10000 Unique vmid identifier
Accept Example Content-Type Example deadlineId integer required
· Example: 2 data object required data.canExtendAgain boolean required
· Example: true data.extensionCount integer required
· Example: 1 data.maxExtensions integer required
· Example: 2 data.newDeadline string required
· Example: 2026-02-10T00:00:00.000Z data.originalDeadline string required
· Example: 2026-02-10T00:00:00.000Z data.success boolean required
· Example: true True for successful responses.
requestId string required
· Example: 2121ae20-bd9d-41e9-aeeb-5dd1dd1a24ba Unique request identifier (UUID).
success boolean required
· Example: true True for successful responses.
timestamp string required
· Example: 2026-02-10T00:00:00.000Z ISO 8601 timestamp (UTC).
https://cloud.hostup.se/api/vm/{vmid}/maintenance/extend curl -X POST "https://cloud.hostup.se/api/vm/10000/maintenance/extend" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"deadlineId": 2
}' {
"success": true,
"timestamp": "2026-02-10T00:00:00.000Z",
"requestId": "2121ae20-bd9d-41e9-aeeb-5dd1dd1a24ba",
"data": {
"success": true,
"originalDeadline": "2026-02-10T00:00:00.000Z",
"newDeadline": "2026-02-10T00:00:00.000Z",
"extensionCount": 1,
"maxExtensions": 2,
"canExtendAgain": true
}
} {
"deadlineId": 2
}