# Add a new Wi-Fi payload configuration to an existing profile Create Android Wifi configurations payload. ## Endpoint **POST** `/api/v1/mdm/profiles/{profile_id}/payloads/androidwifipolicy` ## Request URL `https://{serverurl}/api/v1/mdm/profiles/{profile_id}/payloads/androidwifipolicy` ## Request Parameters ### 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. ### Request Body `application/json` - **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 POST \ --url https://appdomain/api/v1/mdm/profiles/{profile_id}/payloads/androidwifipolicy \ --header 'content-type: application/json' \ --data '{"hidden_network":false,"service_set_identifier":"value","security_type":0}' ``` ## Sample Request Body Add Wi-Fi payload to the profile. ```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` - **payload_id** (`long`): Unique identifier for the created 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 - **200**: HTTP code ## Sample Response: HTTP 200 Wi-Fi payload successfully added. ```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 } ```