> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Add Maintenance Windows To Devices

Add set of maintenance windows for a given devices by their IDs.

<Note>
  External Documentation

  To learn more, visit the [N-able N-Central documentation](https://developer.n-able.com/n-central/reference/addmaintenancewindowsbydeviceids).
</Note>

## Parameters

<div className="integrations-table">
  | Parameter           | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
  | ------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Device IDs          | A comma-separated list of device IDs to add a set of maintenance windows for. Can be obtained using `List Devices` action.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
  | Maintenance Windows | A list of maintenance windows settings objects to set to the devices.<br /><br />**Required keys:** `applicableAction`, `cron`, `duration`, `enabled`, `name` and `type`.<br /><br />For more information, please refer to [N-Central API documentation](https://developer.n-able.com/n-central/reference/addmaintenancewindowsbydeviceids).<br /><br /><pre><code>\[<br />    \{<br />      "applicableAction": <br />      \[<br />        \{<br />          "type": "action",<br />          "actions": \[<br />            \{<br />              "Key": "detect"<br />            }<br />          ]<br />        }<br />      ],<br />      "cron": "0 0 0 ? 2 1,4 \*",<br />      "duration": 60,<br />      "enabled": true,<br />      "name": "Test Maintenance Window",<br />      "type": "action",<br />      "downtimeOnAction": false,<br />      "rebootMethod": "allowUserToPostpone",<br />      "rebootDelay": 5,<br />      "userMessageEnabled": false<br />    }<br /> ]</code></pre> |
</div>

## Example Output

```json theme={"dark"}
{
	"success": true
}
```

## Workflow Library Example

[Add Maintenance Windows to Devices with N Able N Central and Send Results Via Email](https://library.blinkops.com/workflows/add-maintenance-windows-to-devices-with-n-able-n-central-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/add-maintenance-windows-to-devices-with-n-able-n-central-and-send-results-via-email/canvas" />
</div>
