> ## 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).

## Parameters

| 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. **Required keys:** `applicableAction`, `cron`, `duration`, `enabled`, `name` and `type`. For more information, please refer to [N-Central API documentation](https://developer.n-able.com/n-central/reference/addmaintenancewindowsbydeviceids). <pre>`[    {      "applicableAction":       [        {          "type": "action",          "actions": [            {              "Key": "detect"            }          ]        }      ],      "cron": "0 0 0 ? 2 1,4 *",      "duration": 60,      "enabled": true,      "name": "Test Maintenance Window",      "type": "action",      "downtimeOnAction": false,      "rebootMethod": "allowUserToPostpone",      "rebootDelay": 5,      "userMessageEnabled": false    } ]`</pre> |

## Example Output

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