Fetches the list of supported template packages

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

Retrieves a paginated list of template packages available for creation, filtered by platform and optional search text. The packageId in the response represents the patchId needed for other template APIs.

Request URL

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

Scope

SWDeployment.READCopied!

Header

Authorization: d92d4xxxxxxxxxxxxx15f52

Request Parameters

- Request Headers

AcceptstringMandatory
application/templatePackageList.v1+jsonapplication/templatePackageList.v1+jsonCopied!

Sample Request

Curl
Java
Python
Deluge
PowerShell
Copied!
curl --request GET \
  --url https://appdomain/dcapi/swDeployment/templatePackageList \
  --header 'Accept: application/templatePackageList.v1+json' \
  --header 'Authorization:  d92d4xxxxxxxxxxxxx15f52'

Response Parameters

- HTTP code 200

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

Display name of the template package

packageIdstring

Template patch identifier (patchId). Use this value as the patchId parameter when calling the Get Template Package Details API.

softwareIdstring

Software identifier from the PPM crawler database

softwareNamestring

Display name of the software

- 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
500HTTP code

Sample Response: HTTP 200

Windows template packages

Copied!
  [
    {
      "softwareId": "2001",
      "softwareName": "7-Zip",
      "packageId": "50001",
      "packageName": "7-Zip 23.01 x64"
    },
    {
      "softwareId": "2002",
      "softwareName": "Google Chrome",
      "packageId": "50002",
      "packageName": "Google Chrome 120.0"
    }
  ]
                
Show full

Sample Response: HTTP 500

Server error

Copied!
  {
    "errorMessage": "Internal Server Error",
    "errorCode": "INTERNAL_ERROR"
  }
                
Show full

Duration: 1 minute | Threshold: 100 | 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.