Disables automatic package creation for one or more software

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

Disables auto-update for the specified software IDs. New template packages will no longer be automatically created when updates become available.

Request URL

https://{server-hostname}:8383/dcapi/swDeployment/disableSWAutoUpdate

Scope

SWDeployment.UPDATECopied!

Header

Authorization: d92d4xxxxxxxxxxxxx15f52

Request Parameters

- Request Headers

Content-TypestringMandatory
application/disableSWAutoUpdate.v1+jsonapplication/disableSWAutoUpdate.v1+jsonCopied!
AcceptstringMandatory
application/disableSWAutoUpdate.v1+jsonapplication/disableSWAutoUpdate.v1+jsonCopied!

- Request Body

application/json
JSON Object
Hide Sub-Attributes
softwareIdsarrayOptional

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 API.

Sample Request

Curl
Java
Python
Deluge
PowerShell
Copied!
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

Copied!
  {
    "softwareIds": [
      2001
    ]
  }
                
Show full

Disable for multiple software

Copied!
  {
    "softwareIds": [
      2001,
      2002,
      2003
    ]
  }
                
Show full

Response Parameters

- HTTP code 200

Response Body - application/json
JSON Object
Hide Sub-Attributes
statusinteger

0 on success, -1 on failure

- HTTP code 401

Response Body - application/json
JSON Object
Hide Sub-Attributes
errorCodelong

Unauthorized error code returned when authentication credentials are missing, expired, or invalid (authentication=required)

errorMsgstring

Authentication failure reason

- HTTP code 500

Response Body - application/json
JSON Object
Hide Sub-Attributes
errorCodestring

INTERNAL_ERROR for general failures, SW_INTERNAL_ERROR for software deployment internal errors

errorMessagestring

Internal server error with details about the template/auto-update operation failure

Possible Response Codes

200HTTP code
401HTTP code
500HTTP code

Sample Response: HTTP 200

Disabled successfully

Copied!
  {
    "status": 0
  }
                
Show full

Sample Response: HTTP 401

User lacks required role

Copied!
  {
    "errorMessage": "Unauthorized access",
    "errorCode": "UAC_UNAUTHORIZED"
  }
                
Show full

Sample Response: HTTP 500

Server error

Copied!
  {
    "errorMessage": "Internal Server Error",
    "errorCode": "INTERNAL_ERROR"
  }
                
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.