# Modify the configuration of a Wi-Fi payload item within a profile Modify Android Wifi configurations payload ## Endpoints `PUT /api/v1/mdm/profiles/{profile_id}/payloads/androidwifipolicy/payloaditems/{payload_id}` ## Request URL ```text https://{server-hostname}:8383/api/v1/mdm/profiles/{profile_id}/payloads/androidwifipolicy/payloaditems/{payload_id} ``` ## Scope ```text MDMDeviceMgmt.UPDATE ``` ## Header ```text Authorization: d92d4xxxxxxxxxxxxx15f52 ``` ## Request Parameters ### Request Headers | Parameter | Type | Required | Value | |---|---|---|---| | Content-Type | string | Mandatory | application/json | | Accept | string | Mandatory | application/json | ### Path Parameters | Parameter | Type | Required | Description | |---|---|---|---| | 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/android-get-wi-fi-payload-android.html) response | ### Request Body `application/json` | Parameter | Type | Required | Description | |---|---|---|---| | sub_config | string | Optional | Wi-Fi security configuration type. WIFI_NON_ENTERPRISE or WIFI_ENTERPRISE. Default: WIFI_NON_ENTERPRISE | | service_set_identifier | string | Mandatory | Wi-Fi network SSID (required) | | auto_join | boolean | Optional | Whether the device automatically joins this network. Default: true | | hidden_network | boolean | Mandatory | Whether the network SSID is hidden (required). Default: false | | security_type | integer | Mandatory | Wi-Fi security type. 0 = None, 1 = WEP, 2 = WPA/WPA2 PSK, 3 = 802.1x EAP, 4 = WPA3 (required). Default: 0 | | wifi_non_enterprise | JSON Object | Optional | Non-enterprise Wi-Fi security settings (password, etc.) | | wifi_enterprise | JSON Object | Optional | Enterprise Wi-Fi security settings (EAP, certificates, etc.) | | proxy_type | integer | Optional | Proxy configuration type. 0 = None, 1 = Manual, 2 = Automatic (PAC). Default: 0 | | proxy_server | string | Optional | Proxy server hostname or IP address | | proxy_server_port | integer | Optional | Proxy server port number. Default: 0 | | proxy_user_name | string | Optional | Username for proxy authentication | | proxy_password | string | Optional | Password for proxy authentication (sensitive — write-only) | | proxy_password_id | long | Optional | ID of the saved credential for the proxy password | | proxy_pac_url | string | Optional | URL of the proxy auto-configuration (PAC) file | | bypass_proxy_url | string | Optional | URLs that bypass the proxy server | | mac_address_randomization_mode | integer | Optional | MAC address randomization mode. 0 = Use device default, 1 = Use randomized MAC, 2 = Use device MAC. Default: 1 | ## Sample Request ```curl curl --request PUT \ --url https://appdomain/api/v1/mdm/profiles/{profile_id}/payloads/androidwifipolicy/payloaditems/{payload_id} \ --header 'Accept: application/json' \ --header 'Authorization: d92d4xxxxxxxxxxxxx15f52' \ --header 'Content-Type: application/json' \ --data '{"wifi_non_enterprise":{},"sub_config":"WIFI_NON_ENTERPRISE","wifi_enterprise":{},"proxy_server":"value","auto_join":true,"hidden_network":false,"proxy_server_port":0,"service_set_identifier":"value","security_type":0,"proxy_type":0}' ``` ## Sample Request Body Modify Wi-Fi payload item ```json { "wifi_non_enterprise": {}, "sub_config": "WIFI_NON_ENTERPRISE", "wifi_enterprise": {}, "proxy_server": "value", "auto_join": true, "hidden_network": false, "proxy_server_port": 0, "service_set_identifier": "value", "security_type": 0, "proxy_type": 0 } ``` ## Response Parameters ### HTTP Code 200 Response Body: `application/json` | Parameter | Type | Description | |---|---|---| | payload_id | long | Unique identifier of the payload item | | sub_config | string | Wi-Fi security configuration type. WIFI_NON_ENTERPRISE or WIFI_ENTERPRISE. Default: WIFI_NON_ENTERPRISE | | service_set_identifier | string | Wi-Fi network SSID (required) | | auto_join | boolean | Whether the device automatically joins this network. Default: true | | hidden_network | boolean | Whether the network SSID is hidden (required). Default: false | | security_type | integer | Wi-Fi security type. 0 = None, 1 = WEP, 2 = WPA/WPA2 PSK, 3 = 802.1x EAP, 4 = WPA3 (required). Default: 0 | | wifi_non_enterprise | JSON Object | Non-enterprise Wi-Fi security settings (password, etc.) | | wifi_enterprise | JSON Object | Enterprise Wi-Fi security settings (EAP, certificates, etc.) | | proxy_type | integer | Proxy configuration type. 0 = None, 1 = Manual, 2 = Automatic (PAC). Default: 0 | | proxy_server | string | Proxy server hostname or IP address | | proxy_server_port | integer | Proxy server port number. Default: 0 | | proxy_user_name | string | Username for proxy authentication | | proxy_password | string | Password for proxy authentication (sensitive — write-only) | | proxy_password_id | long | ID of the saved credential for the proxy password | | proxy_pac_url | string | URL of the proxy auto-configuration (PAC) file | | bypass_proxy_url | string | URLs that bypass the proxy server | | mac_address_randomization_mode | integer | MAC address randomization mode. 0 = Use device default, 1 = Use randomized MAC, 2 = Use device MAC. Default: 1 | ### Possible Response Codes | Code | Type | |---|---| | 200 | HTTP code | ## Sample Response: HTTP 200 Wi-Fi payload item successfully modified ```json { "payload_id": 9007199254741000, "wifi_non_enterprise": {}, "sub_config": "WIFI_NON_ENTERPRISE", "wifi_enterprise": {}, "proxy_server": "value", "auto_join": true, "hidden_network": false, "proxy_server_port": 0, "service_set_identifier": "value", "security_type": 0, "proxy_type": 0 } ``` ## API 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.