# Modify the configuration of a Restrictions payload item within a profile To modify Restrictions policy payload item ## Endpoint **PUT** `/api/v1/mdm/profiles/{profile_id}/payloads/restrictionspolicy/payloaditems/{payload_id}` ## Request URL ``` https://{serverurl}/api/v1/mdm/profiles/{profile_id}/payloads/restrictionspolicy/payloaditems/{payload_id} ``` `{serverurl}` – Refer to your OAuth authentication endpoint domain. ## Scope ``` MDMOnDemand.MDMDeviceMgmt.UPDATE ``` ## Header ``` Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52 ``` ## Request Parameters ### Path Parameters - **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. - **payload_id** (string, Mandatory) Unique identifier of the payload item. Obtain from the [Get Payload Item IDs](https://www.manageengine.com/mobile-device-management/help/api/cloud/ios-get-restrictions-payload2.html) response. ### Query Parameters - **t** (long, Optional) - **ignoreHeader** (boolean, Optional) - **qlt** (long, Optional) - **previousTab** (string, Optional) - **service** (string, Optional) - **search** (string, Optional) Free-text search string applied to the default searchable fields of the resource. - **all** (boolean, Optional) - **dc_customerid** (long, Optional) - **mdm_instance** (string, Optional) - **signupsrc** (string, Optional) - **zaaid** (string, Optional) - **command** (string, Optional) - **orderby** (string, Optional) - **sortorder** (string, Optional) - **select_all** (boolean, Optional) When true, applies the operation to every record matching the current filter rather than to specific IDs. Default: false - **zoho-internal** (boolean, Optional) - **dc_instance** (string, Optional) - **SUBREQUEST** (string, Optional) - **source** (string, Optional) - **nocache** (long, Optional) Param to avoid being served from cache. - **wms_csrparam** (string, Optional) CSRF Token. ## Request Body **Content-Type:** `application/json` **Type:** JSON object ### Sample Request (Curl) ```bash curl --request PUT \ --url https://appdomain/api/v1/mdm/profiles/{profile_id}/payloads/restrictionspolicy/payloaditems/{payload_id} \ --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' \ --header 'content-type: application/json' \ --data '{}' ``` ### Sample Request Body ```json { "allow_app_installation": true, "allow_face_time": true, "allow_assistant": true, "allow_modifi_passcode": true, "allow_use_of_camera": true, "allow_app_removal": true, "allow_airdrop": true, "allow_screen_capture": true, "allow_imessage": true, "allow_sync_while_roaming": true } ``` ## Response Parameters ### HTTP 200 **Response Body:** `application/json` **Type:** JSON object #### Fields - **payload_id** (long) Unique identifier of the payload item. - **allow_app_installation** (boolean) Allow App Installation. Default: true - **allow_app_removal** (boolean) Allow App Removal. Default: true - **allow_use_of_camera** (boolean) Allow Use Of Camera. Default: true - **allow_face_time** (boolean) Allow Face Time. Default: true - **allow_airdrop** (boolean) Allow Airdrop. Default: true - **allow_imessage** (boolean) Allow Imessage. Default: true - **allow_modifi_passcode** (boolean) Allow Modifi Passcode. Default: true - **allow_screen_capture** (boolean) Allow Screen Capture. Default: true - **allow_sync_while_roaming** (boolean) Allow Sync While Roaming. Default: true - **allow_assistant** (boolean) Allow Assistant. Default: true > **Note:** The response includes all configurable restriction fields returned by the API, mirroring the request body attributes with their effective values and defaults. ### Sample Response (HTTP 200) ```json { "payload_id": 9007199254741000, "allow_app_installation": true, "allow_face_time": true, "allow_assistant": true, "allow_modifi_passcode": true, "allow_use_of_camera": true, "allow_app_removal": true, "allow_airdrop": true, "allow_screen_capture": true, "allow_imessage": true, "allow_sync_while_roaming": true } ``` ## Possible Response Codes - **200** – OK