# Updates the configuration and redeploys the specified system tools task Updates the configuration of the specified system tools collection task, including tool selection, targets, and schedule settings. Re-deploys the modified task if it was already active. ## Endpoint `PUT /dcapi/tools/systemTools/{collectionId}` ## Request URL `https://{server-hostname}:8383/dcapi/tools/systemTools/{collectionId}` ## Scope `Tools.UPDATE` ## Header `Authorization: d92d4xxxxxxxxxxxxx15f52` ## Request Parameters ### Request Headers - **Accept** (`string`, Mandatory): `application/collectionPersistStatus.v1+json` - **Content-Type** (`string`, Mandatory): `application/collectionDetails.v1+json` ### Path Parameters - **collectionId** (`string`, Mandatory): The unique identifier of the system tools collection. ### Request Body `application/json` - **label** (`string`, Mandatory) - **description** (`string`, Mandatory) - **deployAction** (`string`, Optional) - **rebootClientComputers** (`string`, Optional) - **targetDetails** (`JSON Object`, Optional) - **configDetails** (Optional) - One of: - `JSON Object` - `JSON Object` - `JSON Object` - `JSON Object` ## Sample Request ```curl curl --request PUT \ --url https://appdomain/dcapi/tools/systemTools/{collectionId} \ --header 'Accept: application/collectionPersistStatus.v1+json' \ --header 'Authorization: d92d4xxxxxxxxxxxxx15f52' \ --header 'Content-Type: application/collectionDetails.v1+json' \ --data '{"deployAction":"Deploy","configDetails":[{"toolDetails":{"temporaryFiles":true,"recycleBin":true}}],"description":"Updated task for cleaning temp files","label":"Updated Weekly Cleanup","targetDetails":{"envType":0,"targetValue":"Engineering","targetType":"CustomGroup"},"rebootClientComputers":"0"}' ``` ## Sample Request Body ```json { "deployAction": "Deploy", "configDetails": [ { "toolDetails": { "temporaryFiles": true, "recycleBin": true } } ], "description": "Updated task for cleaning temp files", "label": "Updated Weekly Cleanup", "targetDetails": { "envType": 0, "targetValue": "Engineering", "targetType": "CustomGroup" }, "rebootClientComputers": "0" } ``` ## Response Parameters ### HTTP Code 200 Response body: `application/json` - **status** (`string`): Result of the create or update operation: success or failure. - **collectionId** (`long`): Unique identifier of the created or updated task collection. ## Possible Response Codes - **200**: HTTP code ## Sample Response: HTTP 200 ```json { "collectionId": 12, "status": "success" } ``` ## 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.