To check whether a shutdown task with given name already exists

Open in ChatGPT Open in ChatGPT to ask questions about this page
Open in Claude Open in Claude to ask questions about this page
Copy as MarkdownCopy this page as markdown to use with AI assistants
View as Markdown Open this page as markdown in a new tab

Check if a power operation task with the same name is already created by the same technician

Request URL

https://{serverurl}/dcapi/tools/shutdown/tasks/taskExists

Scope

DesktopCentralCloud.Tools.READCopied!

Header

Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52

Request Parameters

- Request Headers

AcceptstringMandatory
application/jsonapplication/jsonCopied!

- Query Parameters

taskIDstringOptional

ID of the existing task to exclude from the duplicate check. Pass -1 when creating a new task

taskNamestringOptional

Name of the power operation task to check for duplicates among tasks owned by the same technician

Sample Request

Curl
Java
Python
Deluge
PowerShell
Copied!
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
Hide Sub-Attributes
taskExistsboolean

true if a shutdown/restart task with the same name or target already exists

Possible Response Codes

200HTTP code

Sample Response: HTTP 200

Copied!
  {
    "taskExists": false
  }
                
Show full

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.