# Add a new Work Data Security payload configuration to an existing profile Create Android Workdata security policy payload ## Endpoint **POST** `/api/v1/mdm/profiles/{profile_id}/payloads/androidworkdatasecuritypolicy` ## Request URL `https://{server-hostname}:8383/api/v1/mdm/profiles/{profile_id}/payloads/androidworkdatasecuritypolicy` ## Scope `MDMDeviceMgmt.CREATE` ## Header `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 | ### Request Body `application/json` | Parameter | Type | Required | Description | |---|---|---|---| | allow_share_doc_to_work_profile | boolean | Optional | Whether sharing documents to the work profile is allowed. Default: false | | allow_share_doc_to_personal_apps | boolean | Optional | Whether sharing documents to personal apps is allowed. Default: false | | allow_profile_content_to_other_apps | boolean | Optional | Whether work profile content can be shared with other apps. Default: false | | allow_profile_contact_over_bluetooth | boolean | Optional | Whether work profile contacts are accessible over Bluetooth. Default: false | | allow_profile_app_widgets_to_home_screen | boolean | Optional | Whether work profile app widgets can be placed on the home screen. Default: false | | allow_contact_in_personal_profile | boolean | Optional | Whether work contacts are visible in the personal profile. Default: false | | allow_contact_access_to_personal_apps | boolean | Optional | Whether personal apps can access work contacts. Default: false | | allow_connected_apps | integer | Optional | Whether connected apps (cross-profile communication) are allowed. 0 = Not Allowed. Default: 0 | | allowed_apps | JSON Array | Optional | List of apps allowed for cross-profile data sharing | | allow_crossprofile_copy_paste | integer | Optional | Whether cross-profile copy-paste is allowed. 0 = Not Allowed. Default: 0 | | allow_crossprofile_data_sharing | integer | Optional | Whether cross-profile data sharing is allowed. 0 = Not Allowed. Default: 0 | | workprofile_turnoff_timeout | integer | Optional | Work profile auto-turnoff timeout in minutes. 0 = No Timeout. Default: 0 | | enable_work_profile_system_apps | array | Optional | List of system apps enabled in the work profile (values 1-5) | ## Sample Request ```curl curl --request POST \ --url https://appdomain/api/v1/mdm/profiles/{profile_id}/payloads/androidworkdatasecuritypolicy \ --header 'Accept: application/json' \ --header 'Authorization: d92d4xxxxxxxxxxxxx15f52' \ --header 'Content-Type: application/json' \ --data '{"allow_crossprofile_copy_paste":0,"allow_profile_contact_over_bluetooth":false,"allow_contact_access_to_personal_apps":false,"allow_connected_apps":0,"allow_share_doc_to_personal_apps":false,"allow_profile_app_widgets_to_home_screen":false,"allowed_apps":[],"allow_contact_in_personal_profile":false,"allow_profile_content_to_other_apps":false,"allow_share_doc_to_work_profile":false}' ``` ## Sample Request Body Add Work Data Security payload to the profile ```json { "allow_crossprofile_copy_paste": 0, "allow_profile_contact_over_bluetooth": false, "allow_contact_access_to_personal_apps": false, "allow_connected_apps": 0, "allow_share_doc_to_personal_apps": false, "allow_profile_app_widgets_to_home_screen": false, "allowed_apps": [], "allow_contact_in_personal_profile": false, "allow_profile_content_to_other_apps": false, "allow_share_doc_to_work_profile": false } ``` ## Response Parameters ### HTTP Code 200 Response Body: `application/json` | Parameter | Type | Description | |---|---|---| | payload_id | long | Unique identifier for the created payload item | | allow_share_doc_to_work_profile | boolean | Whether sharing documents to the work profile is allowed. Default: false | | allow_share_doc_to_personal_apps | boolean | Whether sharing documents to personal apps is allowed. Default: false | | allow_profile_content_to_other_apps | boolean | Whether work profile content can be shared with other apps. Default: false | | allow_profile_contact_over_bluetooth | boolean | Whether work profile contacts are accessible over Bluetooth. Default: false | | allow_profile_app_widgets_to_home_screen | boolean | Whether work profile app widgets can be placed on the home screen. Default: false | | allow_contact_in_personal_profile | boolean | Whether work contacts are visible in the personal profile. Default: false | | allow_contact_access_to_personal_apps | boolean | Whether personal apps can access work contacts. Default: false | | allow_connected_apps | integer | Whether connected apps (cross-profile communication) are allowed. 0 = Not Allowed. Default: 0 | | allowed_apps | JSON Array | List of apps allowed for cross-profile data sharing | | allow_crossprofile_copy_paste | integer | Whether cross-profile copy-paste is allowed. 0 = Not Allowed. Default: 0 | | allow_crossprofile_data_sharing | integer | Whether cross-profile data sharing is allowed. 0 = Not Allowed. Default: 0 | | workprofile_turnoff_timeout | integer | Work profile auto-turnoff timeout in minutes. 0 = No Timeout. Default: 0 | | enable_work_profile_system_apps | array | List of system apps enabled in the work profile (values 1-5) | ### Possible Response Codes | Code | Type | |---|---| | 200 | HTTP code | ## Sample Response: HTTP 200 Work Data Security payload successfully added ```json { "allow_crossprofile_copy_paste": 0, "payload_id": 9007199254741000, "allow_profile_contact_over_bluetooth": false, "allow_contact_access_to_personal_apps": false, "allow_connected_apps": 0, "allow_share_doc_to_personal_apps": false, "allow_profile_app_widgets_to_home_screen": false, "allowed_apps": [], "allow_contact_in_personal_profile": false, "allow_profile_content_to_other_apps": false, "allow_share_doc_to_work_profile": false } ``` ![](https://www.zohowebstatic.com/sites/zweb/images/people/ico-help.png) **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.