# Add a new Restrictions payload configuration to an existing profile To create Tv Os Restrictions policy ## Endpoint **POST** `/api/v1/mdm/profiles/{profile_id}/payloads/tvosrestrictionspolicy` ## Request ### Request URL https://[_{serverurl}_](https://www.manageengine.com/mobile-device-management/help/api/cloud/oauth-authentication-endpoint-domain.html)/api/v1/mdm/profiles/{profile_id}/payloads/tvosrestrictionspolicy ### Scope `MDMOnDemand.MDMDeviceMgmt.CREATE` ### Header `Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52` ### Request Parameters #### Request Headers - **Content-Type** `string` **Mandatory**: `application/json` - **Accept** `string` **Mandatory**: `application/json` #### 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 #### Request Body `application/json` `JSON object` - **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 POST \ --url https://appdomain/api/v1/mdm/profiles/{profile_id}/payloads/tvosrestrictionspolicy \ --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 { "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 ### Response Parameters #### HTTP Code 200 Response Body: `application/json` `JSON object` - **payload_id** `long` Unique identifier for the created 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 ### Possible Response Codes - **200** `HTTP code` ### Sample Response: HTTP 200 Restrictions payload successfully added ```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 } ``` ![](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.