# Creates or updates a scheduled Wake on LAN task Creates or updates a scheduled Wake on LAN task with the specified task name, target computers or groups, platform, and schedule configuration. Accepts a JSON body with the full scheduled task configuration. ## Endpoint **POST** `/dcapi/tools/wol/saveSchedule` ## Request URL `https://{server-hostname}:8383/dcapi/tools/wol/saveSchedule` ## Scope `Tools.UPDATE` ## Header `Authorization: d92d4xxxxxxxxxxxxx15f52` ## Request Parameters ### Request Headers - **Accept** — `string` — **Mandatory** - `application/saveScheduleTask.v1+json` - **Content-Type** — `string` — **Mandatory** - `application/saveScheduleTaskInfo.v1+json` ### Request Body `application/json` - `JSON Object` - **taskDetails** — `JSON Object` — Optional - **scheduleDetails** — `JSON Object` — Optional - **targetData** — `JSON Object` — Optional ## Sample Request ```curl curl --request POST \ --url https://appdomain/dcapi/tools/wol/saveSchedule \ --header 'Accept: application/saveScheduleTask.v1+json' \ --header 'Authorization: d92d4xxxxxxxxxxxxx15f52' \ --header 'Content-Type: application/saveScheduleTaskInfo.v1+json' \ --data '{"targetData":{"envType":0,"targetValue":"Engineering","targetType":"CustomGroup"},"taskDetails":{"port":9,"threadCount":5,"timeInterval":3,"taskName":"Morning WOL","resolveIP":true,"platform":1},"scheduleDetails":{"dailyTime":"03/25/2026, 07:00","scheduleType":"daily","taskTimeZone":"America/New_York","dailyIntervalType":"everyDay"}}' ``` ## Sample Request Body ```json { "targetData": { "envType": 0, "targetValue": "Engineering", "targetType": "CustomGroup" }, "taskDetails": { "port": 9, "threadCount": 5, "timeInterval": 3, "taskName": "Morning WOL", "resolveIP": true, "platform": 1 }, "scheduleDetails": { "dailyTime": "03/25/2026, 07:00", "scheduleType": "daily", "taskTimeZone": "America/New_York", "dailyIntervalType": "everyDay" } } ``` ## Response Parameters ### HTTP Code 200 Response Body — `application/json` - `JSON Object` - **status** — `string` - Result of the operation: success or failure - **taskId** — `long` - Unique identifier of the created or saved task ### Possible Response Codes - **200** — HTTP code ## Sample Response: HTTP 200 ```json { "taskId": 18, "status": "success" } ``` ## API Request Limits ![](https://www.zohowebstatic.com/sites/zweb/images/people/ico-help.png) **Duration:** 1 minute | **Threshold:** 30 | **Lock period:** 5 minutes Duration - Time window for the threshold. Threshold - Number of API calls allowed within the specified duration. Lock Period - Wait time before consecutive API requests.