# Creates and deploys a new system tools task targeting specified computers Creates and deploys a new system tools collection task. Accepts a JSON body specifying the task label, description, tools to run (Check Disk, Defragmenter, Disk Cleanup, Task Scheduler), target computers or groups, and schedule configuration. ## Endpoints `POST /dcapi/tools/systemTools/tasks/deploy` ## Request URL `https://{serverurl}/dcapi/tools/systemTools/tasks/deploy` `{serverurl}`: [OAuth authentication endpoint domain](https://www.manageengine.com/products/desktop-central/help/api/cloud/oauth-authentication-endpoint-domain.html) ## Scope `DesktopCentralCloud.Tools.UPDATE` ## Header `Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52` ## Request Parameters ### Request Headers - **Accept** — `string` — **Mandatory** - `application/collectionDeployStatus.v1+json` - **Content-Type** — `string` — **Mandatory** - `application/collectionDetails.v1+json` ### Request Body `application/json` - `JSON Object` - **label** — `string` — **Mandatory** - **description** — `string` — **Mandatory** - **deployAction** — `string` — Optional - **rebootClientComputers** — `string` — Optional - **targetDetails** — `JSON Object` — Optional - **configDetails** — Optional - oneOf - `JSON Object` - `JSON Object` - `JSON Object` - `JSON Object` ### Sample Request ```curl curl --request POST \ --url https://appdomains/dcapi/tools/systemTools/tasks/deploy \ --header 'Accept: application/collectionDeployStatus.v1+json' \ --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' \ --header 'Content-Type: application/collectionDetails.v1+json' \ --data '{"description":"Automate disk cleanup for Engineering team","label":"Weekly Disk Cleanup"}' ``` ### Sample Request Body ```json { "deployAction": "Deploy", "configDetails": [ { "toolDetails": { "temporaryFiles": true, "internetCacheFiles": false, "recycleBin": true } } ], "description": "Automate disk cleanup for Engineering team", "label": "Weekly Disk Cleanup", "targetDetails": { "envType": 0, "targetValue": "Engineering", "targetType": "CustomGroup" }, "rebootClientComputers": "0" } ``` ## Response Parameters ### HTTP Code 200 Response body: `application/json` - `JSON Object` - **status** — `string` - Result of the create or update operation: success or failure - **collectionId** — `long` - Unique identifier of the created or updated task collection ### Sample Response: HTTP 200 ```json { "collectionId": 15, "status": "success" } ``` ## Possible Response Codes - **200** — HTTP code ## Rate Limit ![](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.