# Update Approval Settings Updates patch approval configuration settings. ## Endpoints **POST** `/dcapi/patch/settings/approvalSettings` ## Request URL `https://{server-hostname}:8383/dcapi/patch/settings/approvalSettings` ## Scope `PatchMgmt.CREATE` ## Header `Authorization: d92d4xxxxxxxxxxxxx15f52` ## Request Body **Content-Type:** `application/json` JSON Object: - **patchApprovalEnabled** `boolean` *(Optional)*: Whether patch approval workflow is enabled - **autoApprovalEnabled** `boolean` *(Optional)*: Whether auto-approval is enabled - **approvalType** `string` *(Optional)*: Approval type: manual or auto - **approveAfterDays** `string` *(Optional)*: Number of days after which patches are auto-approved (when autoApproval is enabled) ## Sample Request ```curl curl --request POST \ --url https://appdomain/dcapi/patch/settings/approvalSettings \ --header 'Authorization: d92d4xxxxxxxxxxxxx15f52' \ --header 'content-type: application/json' \ --data '{"autoApprovalEnabled":false,"approvalType":"manual","patchApprovalEnabled":true,"approveAfterDays":7}' ``` ## Sample Request Body Enable auto-approval after 7 days ```json { "autoApprovalEnabled": false, "approvalType": "manual", "patchApprovalEnabled": true, "approveAfterDays": 7 } ``` ## Response Parameters ### HTTP Code 200 **Response Body:** `application/json` JSON Object: - **status** `string`: Operation result: success - **remarks** `string`: Confirmation message ## Possible Response Codes - **200** `HTTP code` ## Sample Response: HTTP 200 Approval settings updated ```json { "remarks": "Approval settings updated", "status": "success" } ``` ## Rate Limits ![](https://www.zohowebstatic.com/sites/zweb/images/people/ico-help.png) **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.