Add a new Web Clips 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 Android Webshortcuts payload

Request URL

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

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
webclip_labelstringMandatory

Display label for the web shortcut on the device home screen (required)

webclip_namestringMandatory

Internal name identifier for the web shortcut (required)

webclip_urlstringMandatory

Target URL that the web shortcut opens (required)

is_removalbooleanOptional

Whether the user can remove the web shortcut. Default: true

webclips_file_uploadstringOptional

Uploaded icon image file for the web shortcut

icon_file_namestringOptional

File name of the web shortcut icon

use_precomp_iconbooleanOptional

Whether to use the precomposed icon (no visual effects). Default: false

allow_full_screenbooleanOptional

Whether the web shortcut opens in full screen mode. Default: false

refresh_modeintegerOptional

Page refresh behavior. 0 = No Refresh. Default: 0

allow_webview_clear_cookiesintegerOptional

Whether clearing cookies is allowed in the web view. 0 = Not Allowed. Default: 0

open_web_shortcut_inintegerOptional

Where to open the web shortcut. 1 = In-app WebView. Default: 1

open_webclip_with_package_namearrayOptional

List of app package names that can open this web shortcut

screen_orientation_optionintegerOptional

Screen orientation. 5 = Unspecified. Default: 5

allow_clear_cacheintegerOptional

Whether clearing cache is allowed. 0 = Not Allowed. Default: 0

allow_copy_pastebooleanOptional

Whether copy-paste is allowed in the web view. Default: true

allow_fullscreen_in_web_viewbooleanOptional

Whether fullscreen mode is allowed in the web view. Default: false

enable_desktop_siteintegerOptional

Desktop site mode. 3 = Auto-detect. Default: 3

webclip_policy_idlongOptional

ID of the web clips policy configuration

allow_site_permissionbooleanOptional

Whether site permissions (camera, mic, location) are allowed. Default: false

Sample Request

Curl
Java
Python
Deluge
PowerShell
Copied!
curl --request POST \
  --url https://appdomain/api/v1/mdm/profiles/{profile_id}/payloads/androidwebclipspolicy \
  --header 'Accept: application/json' \
  --header 'Authorization:  d92d4xxxxxxxxxxxxx15f52' \
  --header 'Content-Type: application/json' \
  --data '{"webclip_url":"https://zylker.com","is_removal":true,"webclip_label":"value","webclips_file_upload":"value","allow_webview_clear_cookies":0,"webclip_name":"Zylker User","refresh_mode":0,"use_precomp_icon":false,"icon_file_name":"value","allow_full_screen":false}'

Sample Request Body

Add Web Clips payload to the profile

Copied!
  {
    "webclip_url": "https://zylker.com",
    "is_removal": true,
    "webclip_label": "value",
    "webclips_file_upload": "value",
    "allow_webview_clear_cookies": 0,
    "webclip_name": "Zylker User",
    "refresh_mode": 0,
    "use_precomp_icon": false,
    "icon_file_name": "value",
    "allow_full_screen": false
  }
                
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

webclip_labelstring

Display label for the web shortcut on the device home screen (required)

webclip_namestring

Internal name identifier for the web shortcut (required)

webclip_urlstring

Target URL that the web shortcut opens (required)

is_removalboolean

Whether the user can remove the web shortcut. Default: true

webclips_file_uploadstring

Uploaded icon image file for the web shortcut

icon_file_namestring

File name of the web shortcut icon

use_precomp_iconboolean

Whether to use the precomposed icon (no visual effects). Default: false

allow_full_screenboolean

Whether the web shortcut opens in full screen mode. Default: false

refresh_modeinteger

Page refresh behavior. 0 = No Refresh. Default: 0

allow_webview_clear_cookiesinteger

Whether clearing cookies is allowed in the web view. 0 = Not Allowed. Default: 0

open_web_shortcut_ininteger

Where to open the web shortcut. 1 = In-app WebView. Default: 1

open_webclip_with_package_namearray

List of app package names that can open this web shortcut

screen_orientation_optioninteger

Screen orientation. 5 = Unspecified. Default: 5

allow_clear_cacheinteger

Whether clearing cache is allowed. 0 = Not Allowed. Default: 0

allow_copy_pasteboolean

Whether copy-paste is allowed in the web view. Default: true

allow_fullscreen_in_web_viewboolean

Whether fullscreen mode is allowed in the web view. Default: false

enable_desktop_siteinteger

Desktop site mode. 3 = Auto-detect. Default: 3

webclip_policy_idlong

ID of the web clips policy configuration

allow_site_permissionboolean

Whether site permissions (camera, mic, location) are allowed. Default: false

Possible Response Codes

200HTTP code

Sample Response: HTTP 200

Web Clips payload successfully added

Copied!
  {
    "webclip_url": "https://zylker.com",
    "payload_id": 9007199254741000,
    "is_removal": true,
    "webclip_label": "value",
    "webclips_file_upload": "value",
    "allow_webview_clear_cookies": 0,
    "webclip_name": "Zylker User",
    "refresh_mode": 0,
    "use_precomp_icon": false,
    "icon_file_name": "value",
    "allow_full_screen": false
  }
                
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.