Enables auto-update for specified software IDs by associating each with an auto-update policy. When enabled, new template packages are automatically created when updates are available.
post /dcapi/swDeployment/enableSWAutoUpdate
https://{serverurl}/dcapi/swDeployment/enableSWAutoUpdate
Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52
Software ID to enable auto-update for. Obtain from the swID field in the response of the List Auto Update Eligible Software API.
Auto-update policy ID to associate with this software. Obtain from the policyId field in the response of the List Auto Update Policies API.
curl --request POST \
--url https://appdomains/dcapi/swDeployment/enableSWAutoUpdate \
--header 'Accept: application/enableSWAutoUpdate.v1+json' \
--header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' \
--header 'Content-Type: application/enableSWAutoUpdate.v1+json' \
--data '[{"softwareId":2001,"policyId":1}]'Enable auto-update for one software with a policy
[
{
"softwareId": 2001,
"policyId": 1
}
]
Enable for multiple software
[
{
"softwareId": 2001,
"policyId": 1
},
{
"softwareId": 2002,
"policyId": 2
}
]
0 on success, -1 on failure
Unauthorized error code: credentials missing, expired, or invalid
Authentication failure reason
INTERNAL_ERROR for general failures, SW_INTERNAL_ERROR for software deployment internal errors
Internal server error with details about the template/auto-update operation failure
Enabled successfully
{
"status": 0
}
User lacks required role
{
"errorMessage": "Unauthorized access",
"errorCode": "UAC_UNAUTHORIZED"
}
Server error
{
"errorMessage": "Internal Server Error",
"errorCode": "INTERNAL_ERROR"
}
![]()
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.
© 2026, Zoho Corporation Pvt. Ltd. All Rights Reserved.