# Modify the configuration of a Exploit Guard payload item within a profile Modify Windows Exploit Guard Policy payload details ## Endpoint `PUT /api/v1/mdm/profiles/{profile_id}/payloads/windowsexploitguardpolicy/payloaditems/{payload_id}` ## Request URL `https://{server-hostname}:8383/api/v1/mdm/profiles/{profile_id}/payloads/windowsexploitguardpolicy/payloaditems/{payload_id}` ## Scope `MDMDeviceMgmt.UPDATE` ## Header `Authorization: d92d4xxxxxxxxxxxxx15f52` ## Request Parameters ### Request Headers - **Content-Type** `string` — Mandatory — `application/json` - **Accept** `string` — Mandatory — `application/json` ### Path Parameters - **profile_id** `string` — Mandatory Unique identifier of the profile. Obtain from the [Create Profile](https://www.manageengine.com/products/desktop-central/help/api/onpremise/mdm-profiles-create-profile.html) or [Get Profiles](https://www.manageengine.com/products/desktop-central/help/api/onpremise/mdm-profiles-get-profile.html) response. - **payload_id** `string` — Mandatory Unique identifier of the payload item. Obtain from the [Get Payload Item IDs](https://www.manageengine.com/products/desktop-central/help/api/onpremise/windows-get-exploit-guard-payload.html) response. ### Request Body `application/json` - `JSON Object` - **configure_network_guard** `integer` — Optional Configure Network Guard - **enable_folder_protection** `integer` — Optional Enable Folder Protection - **data_file_id** `long` — Optional File ID from the Response of [API](https://www.manageengine.com/products/desktop-central/help/api/onpremise/files-upload-file-ems.html) - **asr_rules** `JSON Array` — Optional Asr Rules - **folder_rules** `JSON Array` — Optional Folder Rules - **asr_exclude_rules** `JSON Array` — Optional Asr Exclude Rules ## Sample Request ```curl curl --request PUT \ --url https://appdomain/api/v1/mdm/profiles/{profile_id}/payloads/windowsexploitguardpolicy/payloaditems/{payload_id} \ --header 'Accept: application/json' \ --header 'Authorization: d92d4xxxxxxxxxxxxx15f52' \ --header 'Content-Type: application/json' \ --data '{"data_file_id":"9007199254741072","asr_exclude_rules":[{"rule_type":1,"value":"C:\\Winodws\\App.exe"}],"enable_folder_protection":0,"configure_network_guard":"1","folder_rules":[{"rule_type":2,"value":"C:\\windows"},{"rule_type":3,"value":"C:\\windows\\app.exe"}],"asr_rules":[{"mode":"1","guid":"56a863a9-875e-4185-98a7-b882c64b5ce5"},{"mode":"1","guid":"7674ba52-37eb-4a4f-a9a1-f0f9a1619a2c"},{"mode":"1","guid":"9e6c4e1f-7d60-472f-ba1a-a39ef669e4b2"},{"mode":"1","guid":"75668c1f-73b5-4cf0-bb93-3ecf5cb7cc84"},{"mode":"1","guid":"26190899-1602-49e8-8b27-eb1d0a1ce869"},{"mode":"1","guid":"e6db77e5-3df2-4cf1-b95a-636979351e5b"}]}' ``` ## Sample Request Body Modify Exploit Guard payload item ```json { "data_file_id": "9007199254741072", "asr_exclude_rules": [ { "rule_type": 1, "value": "C:\\Winodws\\App.exe" } ], "enable_folder_protection": 0, "configure_network_guard": "1", "folder_rules": [ { "rule_type": 2, "value": "C:\\windows" }, { "rule_type": 3, "value": "C:\\windows\\app.exe" } ], "asr_rules": [ { "mode": "1", "guid": "56a863a9-875e-4185-98a7-b882c64b5ce5" }, { "mode": "1", "guid": "7674ba52-37eb-4a4f-a9a1-f0f9a1619a2c" }, { "mode": "1", "guid": "9e6c4e1f-7d60-472f-ba1a-a39ef669e4b2" }, { "mode": "1", "guid": "75668c1f-73b5-4cf0-bb93-3ecf5cb7cc84" }, { "mode": "1", "guid": "26190899-1602-49e8-8b27-eb1d0a1ce869" }, { "mode": "1", "guid": "e6db77e5-3df2-4cf1-b95a-636979351e5b" } ] } ``` ## Response Parameters ### HTTP Code 200 Response Body — `application/json` - `JSON Object` - **payload_id** `long` Unique identifier for the created payload item - **configure_network_guard** `integer` Configure Network Guard - **enable_folder_protection** `integer` Enable Folder Protection - **data_blob** `string` Data Blob - **asr_rules** `JSON Array` Asr Rules - **folder_rules** `JSON Array` Folder Rules - **asr_exclude_rules** `JSON Array` Asr Exclude Rules ## Possible Response Codes - **200** — HTTP code ## Sample Response: HTTP 200 Exploit Guard payload item successfully modified ```json { "payload_id": "9007199254741295", "asr_exclude_rules": [ { "rule_type": "1", "value": "C:\\Winodws\\App.exe" } ], "enable_folder_protection": "0", "configure_network_guard": "1", "folder_rules": [ { "rule_type": "2", "value": "C:\\windows" }, { "rule_type": "3", "value": "C:\\windows\\app.exe" } ], "data_blob": "PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiP", "asr_rules": [ { "mode": "1", "guid": "56a863a9-875e-4185-98a7-b882c64b5ce5" }, { "mode": "1", "guid": "7674ba52-37eb-4a4f-a9a1-f0f9a1619a2c" }, { "mode": "1", "guid": "9e6c4e1f-7d60-472f-ba1a-a39ef669e4b2" }, { "mode": "1", "guid": "75668c1f-73b5-4cf0-bb93-3ecf5cb7cc84" }, { "mode": "1", "guid": "26190899-1602-49e8-8b27-eb1d0a1ce869" }, { "mode": "1", "guid": "e6db77e5-3df2-4cf1-b95a-636979351e5b" } ] } ``` ![ ](https://www.zohowebstatic.com/sites/zweb/images/people/ico-help.png) **Duration:** 1 minute | **Threshold:** 60 | **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.