# Disables automatic package creation for one or more software Disables auto-update for the specified software IDs. New template packages will no longer be automatically created when updates become available. ## Endpoint **POST** `/dcapi/swDeployment/disableSWAutoUpdate` ## Request URL `https://{server-hostname}:8383/dcapi/swDeployment/disableSWAutoUpdate` ## Scope `SWDeployment.UPDATE` ## Header `Authorization: d92d4xxxxxxxxxxxxx15f52` ## Request Parameters ### Request Headers - **Content-Type** `string` — **Mandatory**: `application/disableSWAutoUpdate.v1+json` - **Accept** `string` — **Mandatory**: `application/disableSWAutoUpdate.v1+json` ### Request Body `application/json` - `softwareIds` `array` — Optional - Array of software ID longs to disable auto-update for. Obtain software IDs from the `softwareId` field in the response of the [List Auto Update Enabled Software](https://www.manageengine.com/products/desktop-central/help/api/onpremise/templates-list-auto-update-enabled-software.html) API. ## Sample Request ```curl curl --request POST \ --url https://appdomain/dcapi/swDeployment/disableSWAutoUpdate \ --header 'Accept: application/disableSWAutoUpdate.v1+json' \ --header 'Authorization: d92d4xxxxxxxxxxxxx15f52' \ --header 'Content-Type: application/disableSWAutoUpdate.v1+json' \ --data '{"softwareIds":[2001]}' ``` ## Sample Request Body ### Disable auto-update for a single software ```json { "softwareIds": [ 2001 ] } ``` ### Disable for multiple software ```json { "softwareIds": [ 2001, 2002, 2003 ] } ``` ## Response Parameters ### HTTP Code 200 Response Body — `application/json` - `status` `integer` - `0` on success, `-1` on failure ### HTTP Code 401 Response Body — `application/json` - `errorCode` `long` - Unauthorized error code returned when authentication credentials are missing, expired, or invalid (`authentication=required`) - `errorMsg` `string` - Authentication failure reason ### HTTP Code 500 Response Body — `application/json` - `errorCode` `string` - `INTERNAL_ERROR` for general failures, `SW_INTERNAL_ERROR` for software deployment internal errors - `errorMessage` `string` - Internal server error with details about the template/auto-update operation failure ## Possible Response Codes - `200` — HTTP code - `401` — HTTP code - `500` — HTTP code ## Sample Response: HTTP 200 ### Disabled successfully ```json { "status": 0 } ``` ## Sample Response: HTTP 401 ### User lacks required role ```json { "errorMessage": "Unauthorized access", "errorCode": "UAC_UNAUTHORIZED" } ``` ## Sample Response: HTTP 500 ### Server error ```json { "errorMessage": "Internal Server Error", "errorCode": "INTERNAL_ERROR" } ``` ## 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.