Actions64
- Alert Actions
- Backup Actions
- Device Actions
- Approve/Reject
- Cancel Maintenance
- Delete
- Get
- Get Activities
- Get Alerts
- Get Custom Fields
- Get Dashboard URL
- Get Disks
- Get Jobs
- Get Last Logged On User
- Get Many
- Get OS Patch Installs
- Get OS Patches
- Get Policy Overrides
- Get Processors
- Get Software
- Get Software Patch Installs
- Get Software Patches
- Get Scripting Options
- Get Volumes
- Reboot
- Reset Policy Overrides
- Run Script
- Schedule Maintenance
- Update
- Update Custom Fields
- Group Actions
- Location Actions
- Organization Actions
- Query Actions
- Ticket Actions
- Webhook Actions
- Windows Service Actions
Device → Schedule Maintenance
AI-generatedSummary
Schedule a maintenance window on a specific device by specifying start and end times, optionally disabling alerts during the maintenance period.
Inputs
- Device (required) — The target device to schedule maintenance for. Can be selected from a list or by entering the device ID, supporting expressions.
- Maintenance Start (required) — The start date and time of the maintenance window.
- Maintenance End (required) — The end date and time of the maintenance window.
- Disable Alerts — Whether alerts should be disabled during the maintenance window; defaults to true.
Output shape
a JSON object representing the scheduled maintenance details for the device.
Returns the response from the NinjaOne API for the maintenance schedule update. Dates provided are converted to UNIX timestamp seconds as required by the API.
Examples
Example 1: Schedule a maintenance window for a device starting on 2024-06-01 22:00 UTC and ending on 2024-06-01 23:00 UTC, with alerts disabled during maintenance.
Set 'Device' to the target device ID or selected device from list, 'Maintenance Start' to 2024-06-01T22:00:00Z, 'Maintenance End' to 2024-06-01T23:00:00Z, and ensure 'Disable Alerts' is set to true.