# To check whether a shutdown task with given name already exists Check if a power operation task with the same name is already created by the same technician. ## Endpoint `GET /dcapi/tools/shutdown/tasks/taskExists` ## Request URL `https://{serverurl}/dcapi/tools/shutdown/tasks/taskExists` [{serverurl}](https://www.manageengine.com/products/desktop-central/help/api/cloud/oauth-authentication-endpoint-domain.html) ## Scope `DesktopCentralCloud.Tools.READ` ## Header `Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52` ## Request Parameters ### Request Headers - **Accept** (`string`, Mandatory): `application/json` ### Query Parameters - **taskID** (`string`, Optional): ID of the existing task to exclude from the duplicate check. Pass `-1` when creating a new task. - **taskName** (`string`, Optional): Name of the power operation task to check for duplicates among tasks owned by the same technician. ## Sample Request ```curl curl --request GET \ --url https://appdomains/dcapi/tools/shutdown/tasks/taskExists \ --header 'Accept: application/json' \ --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' ``` ## Response Parameters ### HTTP Code 200 #### Response Body: application/json - JSON Object - **taskExists** (`boolean`): `true` if a shutdown/restart task with the same name or target already exists. ### Sample Response: HTTP 200 ```json { "taskExists": false } ``` ![](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.