# Add a new Restrictions payload configuration to an existing profile To create Mac Restrictions policy ## Endpoint `POST /api/v1/mdm/profiles/{profile_id}/payloads/macrestrictionspolicy` ## Request ### Request URL `https://{serverurl}/api/v1/mdm/profiles/{profile_id}/payloads/macrestrictionspolicy` ### Scope `MDMOnDemand.MDMDeviceMgmt.CREATE` ### Header `Authorization: Zoho-oauthtoken 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/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` | Attribute | Type | Required | Description | |---|---|---|---| | allow_game_center | boolean | Optional | Allow Game Center. Default: true | | allow_modifi_wallpaper | boolean | Optional | Allow Modifi Wallpaper. Default: true | | allow_use_of_camera | boolean | Optional | Allow Use Of Camera. Default: true | | allow_cloud_document_sync | boolean | Optional | Allow Cloud Document Sync. Default: true | | allow_cloud_keychain_sync | boolean | Optional | Allow Cloud Keychain Sync. Default: true | | allow_touch_id | boolean | Optional | Allow Touch Id. Default: true | | safari_allow_autofill | boolean | Optional | Safari Allow Autofill. Default: true | | allow_spotlight_result | boolean | Optional | Allow Spotlight Result. Default: true | | force_assist_profanity_filter | boolean | Optional | Force Assist Profanity Filter. Default: false | | allow_activity_continuation | boolean | Optional | Allow Activity Continuation. Default: true | | allow_dictionary_lookup | boolean | Optional | Allow Dictionary Lookup. Default: true | | allow_music_service | boolean | Optional | Allow Music Service. Default: true | | allow_screen_capture | boolean | Optional | Allow Screen Capture. Default: true | | allow_classroom_remoteview | boolean | Optional | Allow Classroom Remoteview. Default: true | | force_classroom_auto_join | boolean | Optional | Force Classroom Auto Join. Default: false | | force_classroom_appdevicelock | boolean | Optional | Force Classroom Appdevicelock. Default: false | | force_classroom_remoteview | boolean | Optional | Force Classroom Remoteview. Default: false | | allow_password_autofill | boolean | Optional | Allow Password Autofill. Default: true | | allow_password_proximity | boolean | Optional | Allow Password Proximity. Default: true | | allow_password_sharing | boolean | Optional | Allow Password Sharing. Default: true | | allow_cloud_photo_lib | boolean | Optional | Allow Cloud Photo Lib. Default: true | | request_to_leave_classroom | boolean | Optional | Request To Leave Classroom. Default: false | | allow_content_caching | boolean | Optional | Allow Content Caching. Default: true | | allow_itunes_file_sharing | boolean | Optional | Allow Itunes File Sharing. Default: true | | allow_auto_unlock | boolean | Optional | Allow Auto Unlock. Default: true | | allow_cloud_desktop_document | boolean | Optional | Allow Cloud Desktop Document. Default: true | | allow_cloud_bookmarks | boolean | Optional | Allow Cloud Bookmarks. Default: true | | allow_cloud_mail | boolean | Optional | Allow Cloud Mail. Default: true | | allow_cloud_calender | boolean | Optional | Allow Cloud Calender. Default: true | | allow_cloud_reminders | boolean | Optional | Allow Cloud Reminders. Default: true | | allow_cloud_addressbook | boolean | Optional | Allow Cloud Addressbook. Default: true | | allow_cloud_notes | boolean | Optional | Allow Cloud Notes. Default: true | | gatekeeper_setting | integer | Optional | Gatekeeper app source restriction. Allowed values: 1=App Store Only, 2=App Store and Identified Developers, 3=Anywhere, 4=Not Configured. Default: 4 | | allow_override_gatekeeper | boolean | Optional | Allow Override Gatekeeper. Default: false | | allow_dictation | boolean | Optional | Allow Dictation. Default: true | | allow_assistant | boolean | Optional | Allow Assistant. Default: true | | allow_use_of_ibookstore | boolean | Optional | Allow Use Of Ibookstore. Default: true | | allow_ibookstore_erotica_media | boolean | Optional | Allow Ibookstore Erotica Media. Default: true | | movies_rating_value | integer | Optional | Movie content rating filter. Allowed values vary by country. US values: 0=Don't Allow, 100=G, 200=PG, 300=PG-13, 400=R, 500=NC-17, 1000=Allow All Movies. Default: 1000 | | tv_shows_rating_value | integer | Optional | TV show content rating filter. Allowed values vary by country. US values: 0=Don't Allow, 100=TV-Y, 200=TV-Y7, 300=TV-G, 400=TV-PG, 500=TV-14, 600=TV-MA, 1000=Allow All TV Shows. Default: 1000 | | apps_rating_value | integer | Optional | App Store content rating filter. Allowed values vary by country. US values: 0=Don't Allow, 100=4+, 200=9+, 300=12+, 600=17+, 1000=Allow All Apps. Default: 1000 | | allow_find_my_friend | boolean | Optional | Allow Find My Friend. Default: true | | allow_find_my_device | boolean | Optional | Allow Find My Device. Default: true | | allow_erase_content_settings | boolean | Optional | Allow Erase Content Settings. Default: true | | is_rating_enabled | boolean | Optional | Is Rating Enabled. Default: false | | country_code | string | Optional | Country Code. Default: us | | allow_cloud_private_relay | boolean | Optional | Allow Cloud Private Relay. Default: true | | allow_usb_restriction_mode | boolean | Optional | Allow Usb Restriction Mode. Default: true | | allow_universal_control | boolean | Optional | Allow Universal Control. Default: true | | allow_profile_installation | boolean | Optional | Allow Profile Installation. Default: true | | allow_rapid_security_response_installation | boolean | Optional | Allow Rapid Security Response Installation. Default: true | | allow_rapid_security_response_removal | boolean | Optional | Allow Rapid Security Response Removal. Default: true | | allow_airdrop | boolean | Optional | Allow Airdrop. Default: true | | allow_bluetooth_modification | boolean | Optional | Allow Bluetooth Modification. Default: true | | bluetooth_setting | integer | Optional | Bluetooth Setting. Allowed values: 0=Off, 1=On, 2=Not Configured. Default: 2 | | allow_marketplace_app_installation | boolean | Optional | Allow Marketplace App Installation. Default: true | | allow_web_distribution_app_installation | boolean | Optional | Allow Web Distribution App Installation. Default: true | | allow_modifi_passcode | boolean | Optional | Allow Modifi Passcode. Default: true | | allow_diagnostic_submission | boolean | Optional | Allow Diagnostic Submission. Default: True | | allow_apple_personalized_ads | boolean | Optional | Allow Apple Personalized Ads. Default: True | | allow_iphone_mirroring | boolean | Optional | Allow Iphone Mirroring. Default: True | | allow_modifi_device_name | boolean | Optional | Allow Modifi Device Name. Default: True | | allow_cloud_freeform | boolean | Optional | Allow Cloud Freeform. Default: True | | enforced_fingerprint_timeout | long | Optional | Enforced Fingerprint Timeout. Default: 172800 | | allow_modify_touch_id | boolean | Optional | Allow Modify Touch Id. Default: True | | allow_printer_sharing_modification | boolean | Optional | Allow Printer Sharing Modification. Default: True | | allow_file_sharing_modification | boolean | Optional | Allow File Sharing Modification. Default: True | | allow_internet_sharing_modification | boolean | Optional | Allow Internet Sharing Modification. Default: True | | allow_bluetooth_sharing_modification | boolean | Optional | Allow Bluetooth Sharing Modification. Default: True | | allow_time_machine_backup | boolean | Optional | Allow Time Machine Backup. Default: True | | allow_multiplayer_gaming | boolean | Optional | Allow Multiplayer Gaming. Default: True | | allow_local_user_creation | boolean | Optional | Allow Local User Creation. Default: True | | airplay_incoming_request | boolean | Optional | Airplay Incoming Request. Default: True | | allow_account_modification | boolean | Optional | Allow Account Modification. Default: True | | allow_ard_remote_management_modification | boolean | Optional | Allow Ard Remote Management Modification. Default: True | | allow_startup_disk_modification | boolean | Optional | Allow Startup Disk Modification. Default: True | | allow_remote_apple_events_modification | boolean | Optional | Allow Remote Apple Events Modification. Default: True | | allow_image_playground | boolean | Optional | Allow Image Playground. Default: True | | allow_writing_tools | boolean | Optional | Allow Writing Tools. Default: True | | allow_external_intelligence_integrations | boolean | Optional | Allow External Intelligence Integrations. Default: True | | force_delayed_software_updates | boolean | Optional | Force Delayed Software Updates. Default: False | | force_delayed_app_software_updates | boolean | Optional | Force Delayed App Software Updates. Default: False | | force_delayed_major_software_updates | boolean | Optional | Force Delayed Major Software Updates. Default: False | | software_update_delay | long | Optional | Software Update Delay. Default: 30 | | software_update_minor_os_deferred_install_delay | long | Optional | Software Update Minor Os Deferred Install Delay. Default: 30 | | software_update_major_os_deferred_install_delay | long | Optional | Software Update Major Os Deferred Install Delay. Default: 30 | | software_update_non_os_deferred_install_delay | long | Optional | Software Update Non Os Deferred Install Delay. Default: 30 | | allow_external_intelligence_integrations_signin | boolean | Optional | Allow External Intelligence Integrations Signin. Default: True | | allow_mail_summary | boolean | Optional | Allow Mail Summary. Default: True | | allow_notes_transcription_summary | boolean | Optional | Allow Notes Transcription Summary. Default: True | | allow_external_intelligence_workspace_ids | string | Optional | Allow External Intelligence Workspace Ids | | force_bypass_screen_capture_alert | boolean | Optional | Force Bypass Screen Capture Alert. Default: False | | allow_media_sharing_modification | boolean | Optional | Allow Media Sharing Modification. Default: False | | allow_apple_intelligence_report | boolean | Optional | Allow Apple Intelligence Report. Default: True | | allow_mail_smart_replies | boolean | Optional | Allow Mail Smart Replies. Default: True | | allow_safari_summary | boolean | Optional | Allow Safari Summary. Default: True | | allow_safari_private_browsing | boolean | Optional | Allow Safari Private Browsing. Default: True | | allow_safari_history_clearing | boolean | Optional | Allow Safari History Clearing. Default: True | ### Sample Request ```curl curl --request POST \ --url https://appdomain/api/v1/mdm/profiles/{profile_id}/payloads/macrestrictionspolicy \ --header 'Accept: application/json' \ --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' \ --header 'Content-Type: application/json' \ --data '{}' ``` ### Sample Request Body Add Restrictions payload to the profile ```json { "allow_activity_continuation": true, "safari_allow_autofill": true, "force_assist_profanity_filter": false, "allow_cloud_document_sync": true, "allow_game_center": true, "allow_use_of_camera": true, "allow_touch_id": true, "allow_modifi_wallpaper": true, "allow_spotlight_result": true, "allow_cloud_keychain_sync": true } ``` ## Response ### HTTP Code 200 Response Body: `application/json` | Attribute | Type | Description | |---|---|---| | payload_id | long | Unique identifier for the created payload item | | allow_game_center | boolean | Allow Game Center. Default: true | | allow_modifi_wallpaper | boolean | Allow Modifi Wallpaper. Default: true | | allow_use_of_camera | boolean | Allow Use Of Camera. Default: true | | allow_cloud_document_sync | boolean | Allow Cloud Document Sync. Default: true | | allow_cloud_keychain_sync | boolean | Allow Cloud Keychain Sync. Default: true | | allow_touch_id | boolean | Allow Touch Id. Default: true | | safari_allow_autofill | boolean | Safari Allow Autofill. Default: true | | allow_spotlight_result | boolean | Allow Spotlight Result. Default: true | | force_assist_profanity_filter | boolean | Force Assist Profanity Filter. Default: false | | allow_activity_continuation | boolean | Allow Activity Continuation. Default: true | | allow_dictionary_lookup | boolean | Allow Dictionary Lookup. Default: true | | allow_music_service | boolean | Allow Music Service. Default: true | | allow_screen_capture | boolean | Allow Screen Capture. Default: true | | allow_classroom_remoteview | boolean | Allow Classroom Remoteview. Default: true | | force_classroom_auto_join | boolean | Force Classroom Auto Join. Default: false | | force_classroom_appdevicelock | boolean | Force Classroom Appdevicelock. Default: false | | force_classroom_remoteview | boolean | Force Classroom Remoteview. Default: false | | allow_password_autofill | boolean | Allow Password Autofill. Default: true | | allow_password_proximity | boolean | Allow Password Proximity. Default: true | | allow_password_sharing | boolean | Allow Password Sharing. Default: true | | allow_cloud_photo_lib | boolean | Allow Cloud Photo Lib. Default: true | | request_to_leave_classroom | boolean | Request To Leave Classroom. Default: false | | allow_content_caching | boolean | Allow Content Caching. Default: true | | allow_itunes_file_sharing | boolean | Allow Itunes File Sharing. Default: true | | allow_auto_unlock | boolean | Allow Auto Unlock. Default: true | | allow_cloud_desktop_document | boolean | Allow Cloud Desktop Document. Default: true | | allow_cloud_bookmarks | boolean | Allow Cloud Bookmarks. Default: true | | allow_cloud_mail | boolean | Allow Cloud Mail. Default: true | | allow_cloud_calender | boolean | Allow Cloud Calender. Default: true | | allow_cloud_reminders | boolean | Allow Cloud Reminders. Default: true | | allow_cloud_addressbook | boolean | Allow Cloud Addressbook. Default: true | | allow_cloud_notes | boolean | Allow Cloud Notes. Default: true | | gatekeeper_setting | integer | Gatekeeper app source restriction. Allowed values: 1=App Store Only, 2=App Store and Identified Developers, 3=Anywhere, 4=Not Configured. Default: 4 | | allow_override_gatekeeper | boolean | Allow Override Gatekeeper. Default: false | | allow_dictation | boolean | Allow Dictation. Default: true | | allow_assistant | boolean | Allow Assistant. Default: true | | allow_use_of_ibookstore | boolean | Allow Use Of Ibookstore. Default: true | | allow_ibookstore_erotica_media | boolean | Allow Ibookstore Erotica Media. Default: true | | movies_rating_value | integer | Movie content rating filter. Allowed values vary by country. US values: 0=Don't Allow, 100=G, 200=PG, 300=PG-13, 400=R, 500=NC-17, 1000=Allow All Movies. Default: 1000 | | tv_shows_rating_value | integer | TV show content rating filter. Allowed values vary by country. US values: 0=Don't Allow, 100=TV-Y, 200=TV-Y7, 300=TV-G, 400=TV-PG, 500=TV-14, 600=TV-MA, 1000=Allow All TV Shows. Default: 1000 | | apps_rating_value | integer | App Store content rating filter. Allowed values vary by country. US values: 0=Don't Allow, 100=4+, 200=9+, 300=12+, 600=17+, 1000=Allow All Apps. Default: 1000 | | allow_find_my_friend | boolean | Allow Find My Friend. Default: true | | allow_find_my_device | boolean | Allow Find My Device. Default: true | | allow_erase_content_settings | boolean | Allow Erase Content Settings. Default: true | | is_rating_enabled | boolean | Is Rating Enabled. Default: false | | country_code | string | Country Code. Default: us | | allow_cloud_private_relay | boolean | Allow Cloud Private Relay. Default: true | | allow_usb_restriction_mode | boolean | Allow Usb Restriction Mode. Default: true | | allow_universal_control | boolean | Allow Universal Control. Default: true | | allow_profile_installation | boolean | Allow Profile Installation. Default: true | | allow_rapid_security_response_installation | boolean | Allow Rapid Security Response Installation. Default: true | | allow_rapid_security_response_removal | boolean | Allow Rapid Security Response Removal. Default: true | | allow_airdrop | boolean | Allow Airdrop. Default: true | | allow_bluetooth_modification | boolean | Allow Bluetooth Modification. Default: true | | bluetooth_setting | integer | Bluetooth Setting. Allowed values: 0=Off, 1=On, 2=Not Configured. Default: 2 | | allow_marketplace_app_installation | boolean | Allow Marketplace App Installation. Default: true | | allow_web_distribution_app_installation | boolean | Allow Web Distribution App Installation. Default: true | | allow_modifi_passcode | boolean | Allow Modifi Passcode. Default: true | | allow_diagnostic_submission | boolean | Allow Diagnostic Submission. Default: True | | allow_apple_personalized_ads | boolean | Allow Apple Personalized Ads. Default: True | | allow_iphone_mirroring | boolean | Allow Iphone Mirroring. Default: True | | allow_modifi_device_name | boolean | Allow Modifi Device Name. Default: True | | allow_cloud_freeform | boolean | Allow Cloud Freeform. Default: True | | enforced_fingerprint_timeout | long | Enforced Fingerprint Timeout. Default: 172800 | | allow_modify_touch_id | boolean | Allow Modify Touch Id. Default: True | | allow_printer_sharing_modification | boolean | Allow Printer Sharing Modification. Default: True | | allow_file_sharing_modification | boolean | Allow File Sharing Modification. Default: True | | allow_internet_sharing_modification | boolean | Allow Internet Sharing Modification. Default: True | | allow_bluetooth_sharing_modification | boolean | Allow Bluetooth Sharing Modification. Default: True | | allow_time_machine_backup | boolean | Allow Time Machine Backup. Default: True | | allow_multiplayer_gaming | boolean | Allow Multiplayer Gaming. Default: True | | allow_local_user_creation | boolean | Allow Local User Creation. Default: True | | airplay_incoming_request | boolean | Airplay Incoming Request. Default: True | | allow_account_modification | boolean | Allow Account Modification. Default: True | | allow_ard_remote_management_modification | boolean | Allow Ard Remote Management Modification. Default: True | | allow_startup_disk_modification | boolean | Allow Startup Disk Modification. Default: True | | allow_remote_apple_events_modification | boolean | Allow Remote Apple Events Modification. Default: True | | allow_image_playground | boolean | Allow Image Playground. Default: True | | allow_writing_tools | boolean | Allow Writing Tools. Default: True | | allow_external_intelligence_integrations | boolean | Allow External Intelligence Integrations. Default: True | | force_delayed_software_updates | boolean | Force Delayed Software Updates. Default: False | | force_delayed_app_software_updates | boolean | Force Delayed App Software Updates. Default: False | | force_delayed_major_software_updates | boolean | Force Delayed Major Software Updates. Default: False | | software_update_delay | long | Software Update Delay. Default: 30 | | software_update_minor_os_deferred_install_delay | long | Software Update Minor Os Deferred Install Delay. Default: 30 | | software_update_major_os_deferred_install_delay | long | Software Update Major Os Deferred Install Delay. Default: 30 | | software_update_non_os_deferred_install_delay | long | Software Update Non Os Deferred Install Delay. Default: 30 | | allow_external_intelligence_integrations_signin | boolean | Allow External Intelligence Integrations Signin. Default: True | | allow_mail_summary | boolean | Allow Mail Summary. Default: True | | allow_notes_transcription_summary | boolean | Allow Notes Transcription Summary. Default: True | | allow_external_intelligence_workspace_ids | string | Allow External Intelligence Workspace Ids | | force_bypass_screen_capture_alert | boolean | Force Bypass Screen Capture Alert. Default: False | | allow_media_sharing_modification | boolean | Allow Media Sharing Modification. Default: False | | allow_apple_intelligence_report | boolean | Allow Apple Intelligence Report. Default: True | | allow_mail_smart_replies | boolean | Allow Mail Smart Replies. Default: True | | allow_safari_summary | boolean | Allow Safari Summary. Default: True | | allow_safari_private_browsing | boolean | Allow Safari Private Browsing. Default: True | | allow_safari_history_clearing | boolean | Allow Safari History Clearing. Default: True | ### Possible Response Codes | HTTP Code | Description | |---|---| | 200 | HTTP code | ### Sample Response: HTTP 200 Restrictions payload successfully added ```json { "allow_activity_continuation": true, "payload_id": 9007199254741000, "safari_allow_autofill": true, "force_assist_profanity_filter": false, "allow_cloud_document_sync": true, "allow_game_center": true, "allow_use_of_camera": true, "allow_touch_id": true, "allow_modifi_wallpaper": true, "allow_spotlight_result": true, "allow_cloud_keychain_sync": true } ``` ## Rate Limit **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.