Modify the configuration of a Kiosk payload item within a 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

Modify Android VPN policy payload

Request URL

https://{server-hostname}:8383/api/v1/mdm/profiles/{profile_id}/payloads/androidvpnpolicy/payloaditems/{payload_id}

Scope

MDMDeviceMgmt.UPDATECopied!

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

payload_idstringMandatory

Unique identifier of the payload item. Obtain from the Get Payload Item IDs response

- Request Body

application/json
JSON Object
Hide Sub-Attributes
connection_namestringMandatory

VPN connection display name (required)

connection_typeintegerMandatory

VPN connection protocol type. 1 = L2TP/IPSec PSK, 2 = L2TP/IPSec RSA, 3 = IPSec Xauth PSK, 4 = IPSec Xauth RSA, 5 = IPSec IKEv2 PSK, 6 = IPSec IKEv2 RSA, 7 = IPSec Hybrid RSA, 8 = PPTP, 19 = Cisco AnyConnect, 20 = Pulse Secure, 21 = F5 SSL, 22 = Palo Alto (required)

vpn_app_idJSON ObjectOptional

App identifier for the VPN client application

Show Sub-Attributes
group_display_namestringOptional

Display name of the app or app group

app_idlongOptional

Unique identifier of the app group

vpn_lockdown_excluded_appsJSON ArrayOptional

List of apps excluded from VPN lockdown

Show Sub-Attributes
JSON Object
Show Sub-Attributes
group_display_namestringOptional

Display name of the app or app group

app_idlongOptional

Unique identifier of the app group

always_onbooleanOptional

Whether VPN is always on. Default: false

lockdown_enabledbooleanOptional

Whether VPN lockdown is enabled (blocks traffic without VPN). Default: false

l2tp_pskJSON ObjectOptional

L2TP/IPSec PSK connection configuration

Show Sub-Attributes
server_namestringMandatory

VPN server hostname or IP address (required)

shared_secretstringMandatory

IPSec pre-shared key (write-only, required)

l2tp_secretstringOptional

L2TP secret key (write-only)

is_l2tp_secret_enabledbooleanOptional

Whether the L2TP secret is enabled. Default: false

accountstringOptional

VPN account username

ipsec_identifierstringOptional

IPSec group identifier

passwordstringOptional

VPN authentication password (write-only)

user_authenticationintegerOptional

User authentication method

dns_serversstringOptional

DNS server addresses

forwarding_routesstringOptional

Forwarding routes for VPN traffic

user_certificate_idlongOptional

User certificate ID for RSA authentication

l2tp_rsaJSON ObjectOptional

L2TP/IPSec RSA connection configuration

Show Sub-Attributes
server_namestringMandatory

VPN server hostname or IP address (required)

shared_secretstringMandatory

IPSec pre-shared key (write-only, required)

l2tp_secretstringOptional

L2TP secret key (write-only)

is_l2tp_secret_enabledbooleanOptional

Whether the L2TP secret is enabled. Default: false

accountstringOptional

VPN account username

ipsec_identifierstringOptional

IPSec group identifier

passwordstringOptional

VPN authentication password (write-only)

user_authenticationintegerOptional

User authentication method

dns_serversstringOptional

DNS server addresses

forwarding_routesstringOptional

Forwarding routes for VPN traffic

user_certificate_idlongOptional

User certificate ID for RSA authentication

pptpJSON ObjectOptional

PPTP connection configuration

Show Sub-Attributes
server_namestringMandatory

VPN server hostname or IP address (required)

accountstringOptional

VPN account username

passwordstringOptional

VPN authentication password (write-only)

ipsec_xauth_pskJSON ObjectOptional

IPSec Xauth PSK connection configuration

Show Sub-Attributes
server_namestringMandatory

VPN server hostname or IP address (required)

shared_secretstringMandatory

IPSec pre-shared key (write-only, required)

accountstringOptional

VPN account username

ipsec_identifierstringOptional

IPSec group identifier

passwordstringOptional

VPN authentication password (write-only)

dns_serversstringOptional

DNS server addresses

forwarding_routesstringOptional

Forwarding routes for VPN traffic

ipsec_xauth_rsaJSON ObjectOptional

IPSec Xauth RSA connection configuration

Show Sub-Attributes
server_namestringMandatory

VPN server hostname or IP address (required)

shared_secretstringMandatory

IPSec pre-shared key (write-only, required)

accountstringOptional

VPN account username

ipsec_identifierstringOptional

IPSec group identifier

passwordstringOptional

VPN authentication password (write-only)

dns_serversstringOptional

DNS server addresses

forwarding_routesstringOptional

Forwarding routes for VPN traffic

ipsec_ikev2_pskJSON ObjectOptional

IPSec IKEv2 PSK connection configuration

Show Sub-Attributes
server_namestringMandatory

VPN server hostname or IP address (required)

shared_secretstringMandatory

IPSec pre-shared key (write-only, required)

accountstringOptional

VPN account username

ipsec_identifierstringOptional

IPSec group identifier

passwordstringOptional

VPN authentication password (write-only)

dns_serversstringOptional

DNS server addresses

forwarding_routesstringOptional

Forwarding routes for VPN traffic

ipsec_ikev2_rsaJSON ObjectOptional

IPSec IKEv2 RSA connection configuration

Show Sub-Attributes
server_namestringMandatory

VPN server hostname or IP address (required)

shared_secretstringMandatory

IPSec pre-shared key (write-only, required)

accountstringOptional

VPN account username

ipsec_identifierstringOptional

IPSec group identifier

passwordstringOptional

VPN authentication password (write-only)

dns_serversstringOptional

DNS server addresses

forwarding_routesstringOptional

Forwarding routes for VPN traffic

ipsec_hybrid_rdaJSON ObjectOptional

IPSec Hybrid RSA connection configuration

Show Sub-Attributes
server_namestringMandatory

VPN server hostname or IP address (required)

shared_secretstringMandatory

IPSec pre-shared key (write-only, required)

accountstringOptional

VPN account username

ipsec_identifierstringOptional

IPSec group identifier

passwordstringOptional

VPN authentication password (write-only)

dns_serversstringOptional

DNS server addresses

forwarding_routesstringOptional

Forwarding routes for VPN traffic

pulsesecureJSON ObjectOptional

Pulse Secure VPN connection configuration

Show Sub-Attributes
auth_typestringOptional

Authentication type

certificate_idlongOptional

Client certificate ID

always_onbooleanOptional

Whether VPN is always on. Default: false

is_deafault_vpnbooleanOptional

Whether this is the default VPN connection. Default: false

app_vpn_actionstringOptional

Per-app VPN action

passwordstringOptional

VPN authentication password (write-only)

keychain_cert_aliasstringOptional

Keychain certificate alias

server_namestringMandatory

VPN server hostname or IP address (required)

route_typestringOptional

VPN route type

realmstringOptional

Authentication realm

accountstringOptional

VPN account username

rolestringOptional

User role

uiless_authbooleanOptional

Whether UI-less authentication is used. Default: false

allowed_appsstringOptional

Comma-separated package names of apps allowed through VPN

user_authenticationintegerOptional

User authentication method

f5sslJSON ObjectOptional

F5 SSL VPN connection configuration

Show Sub-Attributes
server_namestringMandatory

VPN server hostname or IP address (required)

web_logon_modebooleanOptional

Whether web logon mode is used. Default: false

user_messagestringOptional

User-facing message displayed during VPN connection

allowed_appsstringOptional

Comma-separated package names of apps allowed through VPN

certificate_idlongOptional

Client certificate ID

fips_modebooleanOptional

Whether FIPS mode is enabled. Default: false

accountstringOptional

VPN account username

disallow_user_configbooleanOptional

Whether user configuration changes are disallowed. Default: false

passwordstringOptional

VPN authentication password (write-only)

keychain_cert_aliasstringOptional

Keychain certificate alias

user_authenticationintegerOptional

User authentication method

ciscoanyconnectJSON ObjectOptional

Cisco AnyConnect VPN connection configuration

Show Sub-Attributes
server_namestringMandatory

VPN server hostname or IP address (required)

cert_revocationbooleanOptional

Whether certificate revocation checking is enabled. Default: false

ipsec_auth_typestringOptional

IPSec authentication type

certificate_idlongOptional

Client certificate ID

always_onbooleanOptional

Whether VPN is always on. Default: false

fips_modebooleanOptional

Whether FIPS mode is enabled. Default: false

vpn_connection_protocolstringOptional

VPN connection protocol (SSL or IPSec)

strict_modebooleanOptional

Whether strict certificate validation is enabled. Default: false

passwordstringOptional

VPN authentication password (write-only)

ike_identitystringOptional

IKE identity string

keychain_cert_aliasstringOptional

Keychain certificate alias

allowed_appsstringOptional

Comma-separated package names of apps allowed through VPN

user_authenticationintegerOptional

User authentication method

paloaltoJSON ObjectOptional

Palo Alto Networks GlobalProtect VPN connection configuration

Show Sub-Attributes
server_namestringMandatory

VPN server hostname or IP address (required)

certificate_idlongOptional

Client certificate ID

accountstringOptional

VPN account username

passwordstringOptional

VPN authentication password (write-only)

keychain_cert_aliasstringOptional

Keychain certificate alias

allowed_appsstringOptional

Comma-separated package names of apps allowed through VPN

Sample Request

Curl
Java
Python
Deluge
PowerShell
Copied!
curl --request PUT \
  --url https://appdomain/api/v1/mdm/profiles/{profile_id}/payloads/androidvpnpolicy/payloaditems/{payload_id} \
  --header 'Accept: application/json' \
  --header 'Authorization:  d92d4xxxxxxxxxxxxx15f52' \
  --header 'Content-Type: application/json' \
  --data '{"connection_name":"VPN Configuration","lockdown_enabled":false,"connection_type":19,"vpn_app_id":{},"l2tp_psk":{},"vpn_lockdown_excluded_apps":[],"ipsec_xauth_psk":{},"always_on":false,"pptp":{},"l2tp_rsa":{}}'

Sample Request Body

Modify VPN payload item

Copied!
  {
    "connection_name": "VPN Configuration",
    "lockdown_enabled": false,
    "connection_type": 19,
    "vpn_app_id": {},
    "l2tp_psk": {},
    "vpn_lockdown_excluded_apps": [],
    "ipsec_xauth_psk": {},
    "always_on": false,
    "pptp": {},
    "l2tp_rsa": {}
  }
                
Show full

Response Parameters

- HTTP code 200

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

Unique identifier of the payload item

connection_namestring

VPN connection display name (required)

connection_typeinteger

VPN connection protocol type. 1 = L2TP/IPSec PSK, 2 = L2TP/IPSec RSA, 3 = IPSec Xauth PSK, 4 = IPSec Xauth RSA, 5 = IPSec IKEv2 PSK, 6 = IPSec IKEv2 RSA, 7 = IPSec Hybrid RSA, 8 = PPTP, 19 = Cisco AnyConnect, 20 = Pulse Secure, 21 = F5 SSL, 22 = Palo Alto (required)

vpn_app_idJSON Object

App identifier for the VPN client application

Show Sub-Attributes
group_display_namestring

Display name of the app or app group

app_idlong

Unique identifier of the app group

vpn_lockdown_excluded_appsJSON Array

List of apps excluded from VPN lockdown

Show Sub-Attributes
JSON Object
Show Sub-Attributes
group_display_namestring

Display name of the app or app group

app_idlong

Unique identifier of the app group

always_onboolean

Whether VPN is always on. Default: false

lockdown_enabledboolean

Whether VPN lockdown is enabled (blocks traffic without VPN). Default: false

l2tp_pskJSON Object

L2TP/IPSec PSK connection configuration

Show Sub-Attributes
server_namestring

VPN server hostname or IP address (required)

shared_secretstring

IPSec pre-shared key (write-only, required)

l2tp_secretstring

L2TP secret key (write-only)

is_l2tp_secret_enabledboolean

Whether the L2TP secret is enabled. Default: false

accountstring

VPN account username

ipsec_identifierstring

IPSec group identifier

passwordstring

VPN authentication password (write-only)

user_authenticationinteger

User authentication method

dns_serversstring

DNS server addresses

forwarding_routesstring

Forwarding routes for VPN traffic

user_certificate_idlong

User certificate ID for RSA authentication

l2tp_rsaJSON Object

L2TP/IPSec RSA connection configuration

Show Sub-Attributes
server_namestring

VPN server hostname or IP address (required)

shared_secretstring

IPSec pre-shared key (write-only, required)

l2tp_secretstring

L2TP secret key (write-only)

is_l2tp_secret_enabledboolean

Whether the L2TP secret is enabled. Default: false

accountstring

VPN account username

ipsec_identifierstring

IPSec group identifier

passwordstring

VPN authentication password (write-only)

user_authenticationinteger

User authentication method

dns_serversstring

DNS server addresses

forwarding_routesstring

Forwarding routes for VPN traffic

user_certificate_idlong

User certificate ID for RSA authentication

pptpJSON Object

PPTP connection configuration

Show Sub-Attributes
server_namestring

VPN server hostname or IP address (required)

accountstring

VPN account username

passwordstring

VPN authentication password (write-only)

ipsec_xauth_pskJSON Object

IPSec Xauth PSK connection configuration

Show Sub-Attributes
server_namestring

VPN server hostname or IP address (required)

shared_secretstring

IPSec pre-shared key (write-only, required)

accountstring

VPN account username

ipsec_identifierstring

IPSec group identifier

passwordstring

VPN authentication password (write-only)

dns_serversstring

DNS server addresses

forwarding_routesstring

Forwarding routes for VPN traffic

ipsec_xauth_rsaJSON Object

IPSec Xauth RSA connection configuration

Show Sub-Attributes
server_namestring

VPN server hostname or IP address (required)

shared_secretstring

IPSec pre-shared key (write-only, required)

accountstring

VPN account username

ipsec_identifierstring

IPSec group identifier

passwordstring

VPN authentication password (write-only)

dns_serversstring

DNS server addresses

forwarding_routesstring

Forwarding routes for VPN traffic

ipsec_ikev2_pskJSON Object

IPSec IKEv2 PSK connection configuration

Show Sub-Attributes
server_namestring

VPN server hostname or IP address (required)

shared_secretstring

IPSec pre-shared key (write-only, required)

accountstring

VPN account username

ipsec_identifierstring

IPSec group identifier

passwordstring

VPN authentication password (write-only)

dns_serversstring

DNS server addresses

forwarding_routesstring

Forwarding routes for VPN traffic

ipsec_ikev2_rsaJSON Object

IPSec IKEv2 RSA connection configuration

Show Sub-Attributes
server_namestring

VPN server hostname or IP address (required)

shared_secretstring

IPSec pre-shared key (write-only, required)

accountstring

VPN account username

ipsec_identifierstring

IPSec group identifier

passwordstring

VPN authentication password (write-only)

dns_serversstring

DNS server addresses

forwarding_routesstring

Forwarding routes for VPN traffic

ipsec_hybrid_rdaJSON Object

IPSec Hybrid RSA connection configuration

Show Sub-Attributes
server_namestring

VPN server hostname or IP address (required)

shared_secretstring

IPSec pre-shared key (write-only, required)

accountstring

VPN account username

ipsec_identifierstring

IPSec group identifier

passwordstring

VPN authentication password (write-only)

dns_serversstring

DNS server addresses

forwarding_routesstring

Forwarding routes for VPN traffic

pulsesecureJSON Object

Pulse Secure VPN connection configuration

Show Sub-Attributes
auth_typestring

Authentication type

certificate_idlong

Client certificate ID

always_onboolean

Whether VPN is always on. Default: false

is_deafault_vpnboolean

Whether this is the default VPN connection. Default: false

app_vpn_actionstring

Per-app VPN action

passwordstring

VPN authentication password (write-only)

keychain_cert_aliasstring

Keychain certificate alias

server_namestring

VPN server hostname or IP address (required)

route_typestring

VPN route type

realmstring

Authentication realm

accountstring

VPN account username

rolestring

User role

uiless_authboolean

Whether UI-less authentication is used. Default: false

allowed_appsstring

Comma-separated package names of apps allowed through VPN

user_authenticationinteger

User authentication method

f5sslJSON Object

F5 SSL VPN connection configuration

Show Sub-Attributes
server_namestring

VPN server hostname or IP address (required)

web_logon_modeboolean

Whether web logon mode is used. Default: false

user_messagestring

User-facing message displayed during VPN connection

allowed_appsstring

Comma-separated package names of apps allowed through VPN

certificate_idlong

Client certificate ID

fips_modeboolean

Whether FIPS mode is enabled. Default: false

accountstring

VPN account username

disallow_user_configboolean

Whether user configuration changes are disallowed. Default: false

passwordstring

VPN authentication password (write-only)

keychain_cert_aliasstring

Keychain certificate alias

user_authenticationinteger

User authentication method

ciscoanyconnectJSON Object

Cisco AnyConnect VPN connection configuration

Show Sub-Attributes
server_namestring

VPN server hostname or IP address (required)

cert_revocationboolean

Whether certificate revocation checking is enabled. Default: false

ipsec_auth_typestring

IPSec authentication type

certificate_idlong

Client certificate ID

always_onboolean

Whether VPN is always on. Default: false

fips_modeboolean

Whether FIPS mode is enabled. Default: false

vpn_connection_protocolstring

VPN connection protocol (SSL or IPSec)

strict_modeboolean

Whether strict certificate validation is enabled. Default: false

passwordstring

VPN authentication password (write-only)

ike_identitystring

IKE identity string

keychain_cert_aliasstring

Keychain certificate alias

allowed_appsstring

Comma-separated package names of apps allowed through VPN

user_authenticationinteger

User authentication method

paloaltoJSON Object

Palo Alto Networks GlobalProtect VPN connection configuration

Show Sub-Attributes
server_namestring

VPN server hostname or IP address (required)

certificate_idlong

Client certificate ID

accountstring

VPN account username

passwordstring

VPN authentication password (write-only)

keychain_cert_aliasstring

Keychain certificate alias

allowed_appsstring

Comma-separated package names of apps allowed through VPN

Possible Response Codes

200HTTP code

Sample Response: HTTP 200

VPN payload item successfully modified

Copied!
  {
    "connection_name": "VPN Configuration",
    "payload_id": 9007199254741000,
    "lockdown_enabled": false,
    "connection_type": 19,
    "vpn_app_id": {},
    "l2tp_psk": {},
    "vpn_lockdown_excluded_apps": [],
    "ipsec_xauth_psk": {},
    "always_on": false,
    "pptp": {},
    "l2tp_rsa": {}
  }
                
Show full

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.