Fetches all auto-update policies with default policy identifier

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 the complete list of auto-update policies configured in the system along with the ID of the default policy. Use the policyId from this response when enabling auto-update for software.

Request URL

https://{serverurl}/dcapi/swDeployment/autoUpdatePolicies

Scope

DesktopCentralCloud.SWDeployment.READCopied!

Header

Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52

Request Parameters

- Request Headers

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

Sample Request

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

Response Parameters

- HTTP code 200

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

Policy ID of the default auto-update policy

autoUpdatePoliciesJSON Array

Array of all auto-update policies

Show Sub-Attributes
JSON Object
Show Sub-Attributes
policyIdlong

Unique auto-update policy identifier

policyNamestring

Display name of the auto-update policy

- 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

Multiple policies with default

Copied!
  {
    "autoUpdatePolicies": [
      {
        "policyId": 1,
        "policyName": "Default Policy"
      },
      {
        "policyId": 2,
        "policyName": "Custom SSP Policy"
      }
    ],
    "defaultPolicyId": 1
  }
                
Show full

Only default policy exists

Copied!
  {
    "autoUpdatePolicies": [
      {
        "policyId": 1,
        "policyName": "Default Policy"
      }
    ],
    "defaultPolicyId": 1
  }
                
Show full

Sample Response: HTTP 500

Server error

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