# Modify the configuration of a Restrictions payload item within a profile To create Mac SCEP policy ## Endpoint **PUT** `/api/v1/mdm/profiles/{profile_id}/payloads/tvosrestrictionspolicy/payloaditems/{payload_id}` ## Request ### Request URL `https://{server-hostname}:8383/api/v1/mdm/profiles/{profile_id}/payloads/tvosrestrictionspolicy/payloaditems/{payload_id}` ### Scope `MDMDeviceMgmt.UPDATE` ### 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 | | payload_id | string | Mandatory | Unique identifier of the payload item. Obtain from the [Get Payload Item IDs](https://www.manageengine.com/products/desktop-central/help/api/onpremise/apple-tv-get-restrictions-payload-apple-tv.html) response | #### Request Body `application/json` | Attribute | Type | Required | Description | |---|---|---|---| | airplay_incoming_request | boolean | Optional | Airplay Incoming Request. Default: true | | allow_ibookstore_erotica_media | boolean | Optional | Allow Ibookstore Erotica Media. Default: true | | allow_modifi_device_name | boolean | Optional | Allow Modifi Device Name. Default: true | | allow_device_sleep | boolean | Optional | Allow Device Sleep. Default: true | | allow_explicit_content | boolean | Optional | Allow Explicit Content. Default: true | | allow_password_proximity | boolean | Optional | Allow Password Proximity. Default: true | | allow_remote_app_pairing | boolean | Optional | Allow Remote App Pairing. Default: true | | force_airplay_incoming_pwd | boolean | Optional | Force Airplay Incoming Pwd. Default: false | | force_date_time | boolean | Optional | Force Date Time. Default: false | | 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 | | 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 | | country_code | string | Optional | Country Code. Default: us | | time_zone | string | Optional | Time Zone. Default: -- | | allow_automatic_screen_saver | boolean | Optional | Allow Automatic Screen Saver. Default: true | ### Sample Request ```curl curl --request PUT \ --url https://appdomain/api/v1/mdm/profiles/{profile_id}/payloads/tvosrestrictionspolicy/payloaditems/{payload_id} \ --header 'Accept: application/json' \ --header 'Authorization: d92d4xxxxxxxxxxxxx15f52' \ --header 'Content-Type: application/json' \ --data '{"force_airplay_incoming_pwd":false,"force_date_time":false,"allow_password_proximity":true,"allow_remote_app_pairing":true,"airplay_incoming_request":true,"allow_ibookstore_erotica_media":true,"allow_modifi_device_name":true,"allow_device_sleep":true,"apps_rating_value":1000,"allow_explicit_content":true}' ``` ### Sample Request Body Modify Restrictions payload item ```json { "force_airplay_incoming_pwd": false, "force_date_time": false, "allow_password_proximity": true, "allow_remote_app_pairing": true, "airplay_incoming_request": true, "allow_ibookstore_erotica_media": true, "allow_modifi_device_name": true, "allow_device_sleep": true, "apps_rating_value": 1000, "allow_explicit_content": true } ``` ## Response ### HTTP Code 200 #### Response Body `application/json` | Attribute | Type | Description | |---|---|---| | payload_id | long | Unique identifier of the payload item | | airplay_incoming_request | boolean | Airplay Incoming Request. Default: true | | allow_ibookstore_erotica_media | boolean | Allow Ibookstore Erotica Media. Default: true | | allow_modifi_device_name | boolean | Allow Modifi Device Name. Default: true | | allow_device_sleep | boolean | Allow Device Sleep. Default: true | | allow_explicit_content | boolean | Allow Explicit Content. Default: true | | allow_password_proximity | boolean | Allow Password Proximity. Default: true | | allow_remote_app_pairing | boolean | Allow Remote App Pairing. Default: true | | force_airplay_incoming_pwd | boolean | Force Airplay Incoming Pwd. Default: false | | force_date_time | boolean | Force Date Time. Default: false | | 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 | | 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 | | country_code | string | Country Code. Default: us | | time_zone | string | Time Zone. Default: -- | | allow_automatic_screen_saver | boolean | Allow Automatic Screen Saver. Default: true | ### Sample Response: HTTP 200 Restrictions payload item successfully modified ```json { "payload_id": 9007199254741000, "force_airplay_incoming_pwd": false, "force_date_time": false, "allow_password_proximity": true, "allow_remote_app_pairing": true, "airplay_incoming_request": true, "allow_ibookstore_erotica_media": true, "allow_modifi_device_name": true, "allow_device_sleep": true, "apps_rating_value": 1000, "allow_explicit_content": true } ``` ### Possible Response Codes | Code | Type | |---|---| | 200 | HTTP code | ## API Rate Limit ![](https://www.zohowebstatic.com/sites/zweb/images/people/ico-help.png) **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.