# Creates a new scheduled task for remote power operations such as shutdown, restart, or log off Creates a new scheduled power operation task (shutdown, restart, log off, hibernate, or lock) targeting the specified computers or groups. Accepts a full task configuration JSON body including task name, operation type, platform, shutdown message, postpone or skip options, and schedule settings. ## Endpoints `POST /dcapi/tools/shutdown/tasks` ## Request URL `https://[{serverurl}](https://www.manageengine.com/products/desktop-central/help/api/cloud/oauth-authentication-endpoint-domain.html)/dcapi/tools/shutdown/tasks` ## Scope `DesktopCentralCloud.Tools.UPDATE` ## Header `Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52` ## Request Parameters ### Request Headers - **Accept** (`string`, Mandatory): `application/saveShutdownTask.v1+json` - **Content-Type** (`string`, Mandatory): `application/shutdownTaskParams.v1+json` ### Request Body `application/json` - `JSON Object` - **taskDetails** (`JSON Object`, Optional) - **scheduleJsonObj** (`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/shutdown/tasks \ --header 'Accept: application/saveShutdownTask.v1+json' \ --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' \ --header 'Content-Type: application/shutdownTaskParams.v1+json' \ --data '{}' ``` ### Sample Request Body ```json { "targetData": { "envType": 0, "targetValue": "Engineering", "targetType": "CustomGroup" }, "scheduleJsonObj": { "dailyTime": "03/25/2026, 23:00", "scheduleType": "daily", "taskTimeZone": "America/New_York", "dailyIntervalType": "everyDay" }, "taskDetails": { "mode": "new", "postPoneEnabled": true, "operationStr": "Shutdown", "shutdownTimeout": 300, "skipEnabled": false, "taskName": "Nightly Shutdown", "shutdownMessage": "System will shutdown in 5 minutes.", "taskPlatformID": 1, "operation": 1 } } ``` ## 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": 5, "status": "success" } ``` ![ ](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.