# 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 ### Request URL `https://`[*{serverurl}*](https://www.manageengine.com/products/desktop-central/help/api/cloud/oauth-authentication-endpoint-domain.html)`/dcapi/tools/wol/saveSchedule` ### Scope `DesktopCentralCloud.Tools.UPDATE` ### Header `Authorization: Zoho-oauthtoken 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 - **isTechMapWithCG** — `boolean` — Optional - **isTechMapWithRO** — `boolean` — Optional - **isUserConfigBasedOnROorWG** — `string` — Optional ### Sample Request ```curl curl --request POST \ --url https://appdomains/dcapi/tools/wol/saveSchedule \ --header 'Accept: application/saveScheduleTask.v1+json' \ --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' \ --header 'Content-Type: application/saveScheduleTaskInfo.v1+json' \ --data '{}' ``` ### 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 ### 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 ### Sample Response: HTTP 200 ```json { "taskId": 18, "status": "success" } ``` ### Possible Response Codes - **200** — HTTP code ## Rate Limit **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.