# Fetches all auto-update policies with default policy identifier 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. ## Endpoints GET `/dcapi/swDeployment/autoUpdatePolicies` ## Request URL `https://{server-hostname}:8383/dcapi/swDeployment/autoUpdatePolicies` ## Scope `SWDeployment.READ` ## Header `Authorization: d92d4xxxxxxxxxxxxx15f52` ## Request Parameters ### Request Headers - **Accept** `string` — Mandatory: `application/getAutoUpdatePolicies.v1+json` ## Sample Request ```curl curl --request GET \ --url https://appdomain/dcapi/swDeployment/autoUpdatePolicies \ --header 'Accept: application/getAutoUpdatePolicies.v1+json' \ --header 'Authorization: d92d4xxxxxxxxxxxxx15f52' ``` ## Response Parameters ### HTTP code 200 #### Response Body: `application/json` `JSON Object` - **defaultPolicyId** `long`: Policy ID of the default auto-update policy - **autoUpdatePolicies** `JSON Array`: Array of all auto-update policies ### HTTP code 500 #### Response Body: `application/json` `JSON Object` - **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 - **500** — HTTP code ## Sample Response: HTTP 200 ### Multiple policies with default ```json { "autoUpdatePolicies": [ { "policyId": 1, "policyName": "Default Policy" }, { "policyId": 2, "policyName": "Custom SSP Policy" } ], "defaultPolicyId": 1 } ``` ### Only default policy exists ```json { "autoUpdatePolicies": [ { "policyId": 1, "policyName": "Default Policy" } ], "defaultPolicyId": 1 } ``` ## Sample Response: HTTP 500 ### Server error ```json { "errorMessage": "Internal Server Error", "errorCode": "SW_INTERNAL_ERROR" } ``` ## Rate Limits **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.