# 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 ### Request URL `https://{serverurl}/dcapi/swDeployment/disableSWAutoUpdate` `{serverurl}`: [OAuth Authentication Endpoint Domain](https://www.manageengine.com/products/desktop-central/help/api/cloud/oauth-authentication-endpoint-domain.html) ### Scope `DesktopCentralCloud.SWDeployment.UPDATE` ### Header `Authorization: Zoho-oauthtoken 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/cloud/templates-list-auto-update-enabled-software.html) API. ### Sample Request ```curl curl --request POST \ --url https://appdomains/dcapi/swDeployment/disableSWAutoUpdate \ --header 'Accept: application/disableSWAutoUpdate.v1+json' \ --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' \ --header 'Content-Type: application/disableSWAutoUpdate.v1+json' \ --data '{}' ``` ### 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: credentials missing, expired, or invalid - **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 Limits ![](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.