# Modify a browser-specific payload configuration Updates an add-on payload's add-ons, policies, and native messaging hosts. Published profiles cannot be updated. ## Endpoints `PUT /bsp/api/v1/bmp/manage_addons/{addon_id}/addon_payloads/{payload_id}` ## Request URL `https://[{serverurl}](https://www.manageengine.com/products/desktop-central/help/api/cloud/oauth-authentication-endpoint-domain.html)/bsp/api/v1/bmp/manage_addons/{addon_id}/addon_payloads/{payload_id}` ## Scope `DesktopCentralCloud.BrowserManager.UPDATE` ## Header `Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52` ## Request Parameters ### Request Headers - **Content-Type** `string` **Mandatory**: `application/json` - **Accept** `string` **Mandatory**: `application/json` ### Path Parameters - **payload_id** `string` **Mandatory**: Payload ID from [Get Add-On Management Profile](https://www.manageengine.com/products/desktop-central/help/api/cloud/add-on-management-get-addon-profile.html) response (`config_data_item_id` field) - **addon_id** `string` **Mandatory**: Add-On Management Profile ID from [List Add-On Management Profiles](https://www.manageengine.com/products/desktop-central/help/api/cloud/add-on-management-list-addon-profiles.html) response (`manage_addon_id` field) ### Request Body JSON body with updated payload configuration data `application/json` **JSON Object**: Add-on payload. Pick a browser from the dropdown. - **addon_payloads** Optional: Browser-specific payload ## Examples ### Sample Request ```curl curl --request PUT \ --url https://appdomains/bsp/api/v1/bmp/manage_addons/{addon_id}/addon_payloads/{payload_id} \ --header 'Accept: application/json' \ --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' \ --header 'Content-Type: application/json' \ --data '{}' ``` ### Sample Request Body - Google Chrome Modify Chrome payload ```json { "addon_payloads": { "restrict_permissions": 1, "payload_type": 64125, "runtime_addons": [], "restrict_domains": -1, "pinned_addons": [ "30" ], "permissions": [ "10" ], "browser_type": 1, "policies": { "disable_user_extensions": "-1" }, "add_ons": [ { "binary_id": "30" } ], "restrict_addons": "1", "native_hosts": { "native_permission": "-1", "native_ids": [] }, "install_addons": [ "30" ] } } ``` ## Response Parameters ### HTTP Code 200 Response Body - `application/json` **JSON Object** - **payloads**: Modified payload configurations. Schema branches by target browser ### HTTP Code 401 Response Body - `application/json` **JSON Object** - **errorCode** `long`: Unauthorized error code: credentials missing, expired, or invalid - **errorMsg** `string`: Authentication failure reason ### HTTP Code 403 Response Body - `application/json` **JSON Object** - **errorCode** `long`: Error code indicating insufficient permissions - **errorMsg** `string`: Message indicating insufficient privileges to access this resource ### HTTP Code 404 Response Body - `application/json` **JSON Object** - **errormsg** `string`: Message indicating the requested resource was not found ### HTTP Code 409 Response Body - `application/json` **JSON Object** - **errormsg** `string`: Message indicating a published profile cannot be modified ### HTTP Code 429 Response Body - `application/json` **JSON Object** - **errorCode** `long`: Rate limit error code returned when the API call reached threshold - **errorMsg** `string`: Rate limit exceeded message with retry guidance ### HTTP Code 500 Response Body - `application/json` **JSON Object** - **errormsg** `string`: Message describing the internal server error ## Possible Response Codes - `200` HTTP code - `401` HTTP code - `403` HTTP code - `404` HTTP code - `409` HTTP code - `429` HTTP code - `500` HTTP code ## Response Examples ### Sample Response: HTTP 200 - Google Chrome Chrome payload modified ```json { "payloads": [ { "restrict_permissions": "1", "payload_type": "64125", "restrict_domains": "-1", "binaries_details": [ { "browser_type": "1", "name": "Google Translate", "binary_id": "30", "id": "aapbdbdomjkkjkaonfhkkikfgjllcleb" } ], "payload_id": "1164", "permissions": [ { "name": "Context menu", "id": "10" } ], "pinned_binaries_details": [ { "browser_type": "1", "name": "Google Translate", "binary_id": "30", "id": "aapbdbdomjkkjkaonfhkkikfgjllcleb" } ], "browser_type": "1", "policies": { "disable_user_extensions": "1", "allow_flash": "-1" }, "restrict_addons": "1", "native_hosts": { "native_permission": "-1", "native_details": [] }, "config_label": "MANAGE_CHROME_ADDONS" } ] } ``` ### Sample Response: HTTP 401 Unauthorized ```json { "errorCode": "UNAUTHORIZED", "errorMsg": "You are not authorized to perform this action" } ``` ### Sample Response: HTTP 403 Insufficient permissions ```json { "errorCode": "FORBIDDEN", "errorMsg": "User does not have permission to perform this operation" } ``` ### Sample Response: HTTP 404 Profile or payload not found ```json { "errormsg": "Payload not found" } ``` ### Sample Response: HTTP 409 Cannot modify published profile ```json { "errormsg": "Cannot modify published policy. Clone the policy and retry" } ``` ### Sample Response: HTTP 429 Rate limit exceeded ```json { "errorCode": "RATE_LIMIT_EXCEEDED", "errorMsg": "Too many requests. Please try again after 5 minutes" } ``` ### Sample Response: HTTP 500 Server error ```json { "errormsg": "Internal Server error, Please try again in a moment." } ``` ## 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.