# Update Patch Database Settings Updates patch database platform settings and scheduler configuration. ## Endpoint **PUT** `/dcapi/patch/settings/patchDatabaseSettings` ## Request ### Request URL `https://{server-hostname}:8383/dcapi/patch/settings/patchDatabaseSettings` ### Scope `PatchMgmt.UPDATE` ### Header `Authorization: d92d4xxxxxxxxxxxxx15f52` ### Request Body `application/json` **JSON Object** - **windowsEnabled** `boolean` *(Optional)*: Whether Windows patch management is enabled - **macEnabled** `boolean` *(Optional)*: Whether Mac patch management is enabled - **linuxEnabled** `boolean` *(Optional)*: Whether Linux patch management is enabled - **thirdPartyEnabled** `boolean` *(Optional)*: Whether third-party patch management is enabled - **schedulerSettings** `JSON Object` *(Optional)*: Scheduler configuration for patch database sync ### Sample Request ```curl curl --request PUT \ --url https://appdomain/dcapi/patch/settings/patchDatabaseSettings \ --header 'Authorization: d92d4xxxxxxxxxxxxx15f52' \ --header 'content-type: application/json' \ --data '{"linuxEnabled":true,"windowsEnabled":true,"thirdPartyEnabled":true,"schedulerSettings":{"schedulerEnabled":true,"schedulerTime":"03:00","schedulerType":"Daily"},"macEnabled":true}' ``` ### Sample Request Body Update platform and scheduler settings ```json { "linuxEnabled": true, "windowsEnabled": true, "thirdPartyEnabled": true, "schedulerSettings": { "schedulerEnabled": true, "schedulerTime": "03:00", "schedulerType": "Daily" }, "macEnabled": true } ``` ## Response Parameters ### HTTP Code 200 Response Body: `application/json` **JSON Object** - **remarks** `string`: Confirmation message: patch database settings have saved successfully ### HTTP Code 401 Response Body: `application/json` **JSON Object** - **error_code** `string`: Error code: UAC_UNAUTHORIZED for missing or invalid credentials - **error_description** `string`: Localized description: dc.rest.authentication.unauthorized ### Possible Response Codes - **200** `HTTP code` - **401** `HTTP code` ### Sample Response: HTTP 200 Settings saved ```json { "remarks": "patch database settings have saved successfully" } ``` ### Sample Response: HTTP 401 Unauthorized access ```json { "error_description": "dc.rest.authentication.unauthorized", "error_code": "UAC_UNAUTHORIZED" } ``` ## 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.