Set Device Maintenance
ninjaone_set_device_maintenanceSchedule a maintenance window for a single device to suppress alerts, patching, antivirus scans, or tasks between epoch start and end times. Use it to prevent interruptions during planned work.
Instructions
Schedule a maintenance window on one device, suppressing alerts, patching, AV scans or tasks between start and end (epoch seconds). Undo with ninjaone_cancel_device_maintenance. Body (object) per NinjaOne updateDeviceMaintenance. Fields: disabledFeatures ("ALERTS"|"PATCHING"|"AVSCANS"|"TASKS"[]), start (number), end (number), reasonMessage (string). Needs NINJAONE_MODE=write and confirm: true.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"device_id": "<device_id>",
"body": "<body>",
"confirm": "<confirm>"
},
"name": "ninjaone_set_device_maintenance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Request body as NinjaOne documents it for updateDeviceMaintenance. Field names are NinjaOne's (camelCase). | |
| confirm | Yes | Must be exactly true. States that this call changes live data. There is no undo from this server. | |
| device_id | Yes | Device id (from ninjaone_list_devices or ninjaone_search_devices). |