Add a new Wi-Fi payload configuration to an existing profile

Open in ChatGPT Open in ChatGPT to ask questions about this page
Open in Claude Open in Claude to ask questions about this page
Copy as MarkdownCopy this page as markdown to use with AI assistants
View as Markdown Open this page as markdown in a new tab

Create Windows Wifi policy payload

Request URL

https://{server-hostname}:8383/api/v1/mdm/profiles/{profile_id}/payloads/windowswifipolicy

Scope

MDMDeviceMgmt.CREATECopied!

Header

Authorization: d92d4xxxxxxxxxxxxx15f52

Request Parameters

- Request Headers

Content-TypestringMandatory
application/jsonapplication/jsonCopied!
AcceptstringMandatory
application/jsonapplication/jsonCopied!

- Path Parameters

profile_idstringMandatory

Unique identifier of the profile. Obtain from the Create Profile or Get Profiles response

- Request Body

application/json
JSON Object
Hide Sub-Attributes
sub_configstringOptional

Sub Config. Default: WIFI_NON_ENTERPRISE

service_set_identifierstringMandatory

Service Set Identifier

auto_joinbooleanOptional

Auto Join. Default: true

security_typeintegerMandatory

Security Type. Default: 0

wifi_non_enterpriseJSON ObjectOptional

Wifi Non Enterprise

Show Sub-Attributes
wifi_enterpriseJSON ObjectOptional

Wifi Enterprise

Show Sub-Attributes
proxy_typeintegerOptional

Proxy Type. Default: 0

proxy_serverstringOptional

Proxy Server

proxy_server_portintegerOptional

Proxy Server Port. Default: 0

hidden_networkbooleanMandatory

Hidden Network. Default: false

proxy_user_namestringOptional

Proxy User Name

proxy_passwordstringOptional

Proxy Password (sensitive - write-only)

proxy_password_idlongOptional

Proxy Password Id

proxy_pac_urlstringOptional

Proxy Pac Url

bypass_proxy_urlstringOptional

Bypass Proxy Url

Sample Request

Curl
Java
Python
Deluge
PowerShell
Copied!
curl --request POST \
  --url https://appdomain/api/v1/mdm/profiles/{profile_id}/payloads/windowswifipolicy \
  --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,"proxy_server_port":0,"hidden_network":false,"service_set_identifier":"value","security_type":0,"proxy_type":0}'

Sample Request Body

Add Wi-Fi payload to the profile (Open / no authentication, security_type=0)

Copied!
  {
    "wifi_non_enterprise": {},
    "sub_config": "WIFI_NON_ENTERPRISE",
    "wifi_enterprise": {},
    "proxy_server": "value",
    "auto_join": true,
    "proxy_server_port": 0,
    "hidden_network": false,
    "service_set_identifier": "value",
    "security_type": 0,
    "proxy_type": 0
  }
                
Show full

Add Wi-Fi payload with WPA/WPA2-Personal authentication

Copied!
  {
    "wifi_non_enterprise": {
      "password": "value"
    },
    "sub_config": "WIFI_NON_ENTERPRISE",
    "wifi_enterprise": {},
    "proxy_server": "value",
    "auto_join": true,
    "proxy_server_port": 0,
    "hidden_network": false,
    "service_set_identifier": "value",
    "security_type": 1,
    "proxy_type": 0
  }
                
Show full

Add Wi-Fi payload with WPA/WPA2-Enterprise using EAP-PEAP with inner MSCHAPv2

Copied!
  {
    "wifi_non_enterprise": {},
    "sub_config": "WIFI_ENTERPRISE",
    "wifi_enterprise": {
      "peap": true,
      "certificate_id": 9007199254741100,
      "inner_identity": 3,
      "password": "value",
      "outer_identity": "",
      "user_name": "value",
      "tls": false,
      "dont_validate": false,
      "use_per_connection_pwd": false,
      "identity_certificate_id": -1
    },
    "proxy_server": "value",
    "auto_join": true,
    "proxy_server_port": 0,
    "hidden_network": false,
    "service_set_identifier": "value",
    "security_type": 2,
    "proxy_type": 0
  }
                
Show full

Add Wi-Fi payload with WPA/WPA2-Enterprise using EAP-TLS

Copied!
  {
    "wifi_non_enterprise": {},
    "sub_config": "WIFI_ENTERPRISE",
    "wifi_enterprise": {
      "peap": false,
      "certificate_id": 9007199254741100,
      "outer_identity": "",
      "user_name": "value",
      "tls": true,
      "dont_validate": false,
      "identity_certificate_id": 9007199254741102
    },
    "proxy_server": "value",
    "auto_join": true,
    "proxy_server_port": 0,
    "hidden_network": false,
    "service_set_identifier": "value",
    "security_type": 2,
    "proxy_type": 0
  }
                
Show full

Response Parameters

- HTTP code 200

Response Body - application/json
JSON Object
Hide Sub-Attributes
payload_idlong

Unique identifier for the created payload item

sub_configstring

Sub Config. Default: WIFI_NON_ENTERPRISE

service_set_identifierstring

Service Set Identifier

auto_joinboolean

Auto Join. Default: true

security_typeinteger

Security Type. Default: 0

wifi_non_enterpriseJSON Object

Wifi Non Enterprise

Show Sub-Attributes
wifi_enterpriseJSON Object

Wifi Enterprise

Show Sub-Attributes
proxy_typeinteger

Proxy Type. Default: 0

proxy_serverstring

Proxy Server

proxy_server_portinteger

Proxy Server Port. Default: 0

hidden_networkboolean

Hidden Network. Default: false

proxy_user_namestring

Proxy User Name

proxy_passwordstring

Proxy Password (sensitive - write-only)

proxy_password_idlong

Proxy Password Id

proxy_pac_urlstring

Proxy Pac Url

bypass_proxy_urlstring

Bypass Proxy Url

Possible Response Codes

200HTTP code

Sample Response: HTTP 200

Wi-Fi payload successfully added

Copied!
  {
    "payload_id": 9007199254741000,
    "wifi_non_enterprise": {},
    "sub_config": "WIFI_NON_ENTERPRISE",
    "wifi_enterprise": {},
    "proxy_server": "value",
    "auto_join": true,
    "proxy_server_port": 0,
    "hidden_network": false,
    "service_set_identifier": "value",
    "security_type": 0,
    "proxy_type": 0
  }
                
Show full

Duration: 1 minute | Threshold: 30 | 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.