# Modify the configuration of a EFRP payload item within a profile Modify Android EFRP policy payload ## Endpoints `PUT /api/v1/mdm/profiles/{profile_id}/payloads/androidefrppolicy/payloaditems/{payload_id}` ## Request URL `https://{serverurl}/api/v1/mdm/profiles/{profile_id}/payloads/androidefrppolicy/payloaditems/{payload_id}` ## Scope `MDMOnDemand.MDMDeviceMgmt.UPDATE` ## Header `Authorization: Zoho-oauthtoken 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/mobile-device-management/help/api/cloud/profiles-create-profile.html) or [Get Profiles](https://www.manageengine.com/mobile-device-management/help/api/cloud/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/mobile-device-management/help/api/cloud/android-get-efrp-payload.html) response. ### Request Body `application/json` JSON object: - **efrp_details** `JSON array` — **Mandatory** - List of Google accounts authorized to bypass Factory Reset Protection after a device reset. ## Sample Request ### Curl ```curl curl --request PUT \ --url https://appdomain/api/v1/mdm/profiles/{profile_id}/payloads/androidefrppolicy/payloaditems/{payload_id} \ --header 'Accept: application/json' \ --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' \ --header 'Content-Type: application/json' \ --data '{"efrp_details":[{}]}' ``` ### Java ```java import java.net.URI; import java.net.http.HttpClient; import java.net.http.HttpRequest; import java.net.http.HttpResponse; import java.io.IOException; import java.net.http.HttpTimeoutException; public class Main { public static void main(String[] args) { HttpRequest request = HttpRequest.newBuilder() .uri(URI.create("https://appdomain/api/v1/mdm/profiles/{profile_id}/payloads/androidefrppolicy/payloaditems/{payload_id}")) .header("Content-Type", "application/json") .header("Accept", "application/json") .header("Authorization", "Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52") .method("PUT", HttpRequest.BodyPublishers.ofString("{\"efrp_details\":[{}]}")) .build(); HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString()); System.out.println(response.body()); } } ``` ### Python ```python import http.client conn = http.client.HTTPSConnection("appdomain") payload = "{\"efrp_details\":[{}]}" headers = { 'Content-Type': "application/json", 'Accept': "application/json", 'Authorization': "Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52" } conn.request("PUT", "/api/v1/mdm/profiles/{profile_id}/payloads/androidefrppolicy/payloaditems/{payload_id}", payload, headers) res = conn.getresponse() data = res.read() print(data.decode("utf-8")) ``` ### Deluge ```deluge headersMap = Map(); headersMap.put("Content-Type", "application/json"); headersMap.put("Accept", "application/json"); data=Map(); data_efrp_details=List(); data_efrp_details_item1=Map(); data_efrp_details.add(data_efrp_details_item1); data.put("efrp_details",data_efrp_details); response = invokeUrl [ url: "https://appDomain/api/v1/mdm/profiles/{profile_id}/payloads/androidefrppolicy/payloaditems/{payload_id}" type: PUT headers: headersMap body: data connection: connection_name ] info response; ``` ### PowerShell ```powershell $headers=@{} $headers.Add("Content-Type", "application/json") $headers.Add("Accept", "application/json") $headers.Add("Authorization", "Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52") $response = Invoke-WebRequest -Uri 'https://appdomain/api/v1/mdm/profiles/{profile_id}/payloads/androidefrppolicy/payloaditems/{payload_id}' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{"efrp_details":[{}]}' ``` ## Sample Request Body Modify EFRP payload item ```json { "efrp_details": [ { "email_id": "admin@zylker.com", "email_user_id": "123456789012345678901" } ] } ``` ## Response Parameters ### HTTP Code 200 Response body: `application/json` JSON object: - **payload_id** `long` - Unique identifier of the payload item. - **efrp_details** `JSON array` - List of Google accounts authorized to bypass Factory Reset Protection after a device reset. ## Possible Response Codes - **200** `HTTP code` ## Sample Response: HTTP 200 EFRP payload item successfully modified ```json { "efrp_details": [ { "email_id": "admin@zylker.com", "email_user_id": "123456789012345678901" } ], "payload_id": 9007199254741000 } ``` ## Rate Limit ![](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.