# Modify the configuration of a Shared PC payload item within a profile Modify Windows Shared PC policy payload ## Endpoint `PUT /api/v1/mdm/profiles/{profile_id}/payloads/windowssharedpcpolicy/payloaditems/{payload_id}` ## Request ### Request URL ```text https://{server-hostname}:8383/api/v1/mdm/profiles/{profile_id}/payloads/windowssharedpcpolicy/payloaditems/{payload_id} ``` ### Scope ```text MDMDeviceMgmt.UPDATE ``` ### Header ```text 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/windows-get-shared-pc-payload.html) response | #### Request Body `application/json` | Attribute | Type | Required | Description | |---|---|---|---| | account_model | integer | Optional | Account Model. Default: 0 | | deletion_policy | integer | Optional | Deletion Policy. Default: 1 | | disk_level_caching | integer | Optional | Disk Level Caching. Default: 50 | | disk_level_deletion | integer | Optional | Disk Level Deletion. Default: 25 | | enable_account_manager | boolean | Optional | Enable Account Manager. Default: false | | enable_shared_pc_mode | boolean | Optional | Enable Shared Pc Mode. Default: false | | inactive_threshold | integer | Optional | Inactive Threshold. Default: 30 | | enable_shared_pc_mode_with_onedrive_sync | boolean | Optional | Enable Shared Pc Mode With Onedrive Sync. Default: false | | kiosk_mode_aumid | string | Optional | Kiosk Mode Aumid | | kiosk_mode_user_tile_display_text | string | Optional | Kiosk Mode User Tile Display Text | | maintenance_start_time | integer | Optional | Maintenance Start Time. Default: 0 | | max_pagefile_size_mb | integer | Optional | Max Pagefile Size Mb. Default: 1024 | | restrict_local_storage | boolean | Optional | Restrict Local Storage. Default: false | | set_edu_policies | boolean | Optional | Set Edu Policies. Default: false | | set_power_policies | boolean | Optional | Set Power Policies. Default: false | | signin_on_resume | boolean | Optional | Signin On Resume. Default: false | | sleep_timeout | integer | Optional | Sleep Timeout. Default: 300 | ### Sample Request ```curl curl --request PUT \ --url https://appdomain/api/v1/mdm/profiles/{profile_id}/payloads/windowssharedpcpolicy/payloaditems/{payload_id} \ --header 'Accept: application/json' \ --header 'Authorization: d92d4xxxxxxxxxxxxx15f52' \ --header 'Content-Type: application/json' \ --data '{"restrict_local_storage":false,"maintenance_start_time":0,"set_edu_policies":true,"sleep_timeout":300,"signin_on_resume":false,"set_power_policies":false,"kiosk_mode_user_tile_display_text":"","kiosk_mode_aumid":"","disk_level_caching":50,"disk_level_deletion":25,"inactive_threshold":30,"account_model":0,"deletion_policy":1,"enable_account_manager":false,"enable_shared_pc_mode":true,"enable_shared_pc_mode_with_onedrive_sync":false,"max_pagefile_size_mb":1024}' ``` ### Sample Request Body Modify Shared PC payload item ```json { "restrict_local_storage": false, "maintenance_start_time": 0, "set_edu_policies": true, "sleep_timeout": 300, "signin_on_resume": false, "set_power_policies": false, "kiosk_mode_user_tile_display_text": "", "kiosk_mode_aumid": "", "disk_level_caching": 50, "disk_level_deletion": 25, "inactive_threshold": 30, "account_model": 0, "deletion_policy": 1, "enable_account_manager": false, "enable_shared_pc_mode": true, "enable_shared_pc_mode_with_onedrive_sync": false, "max_pagefile_size_mb": 1024 } ``` ## Response ### HTTP Code 200 #### Response Body `application/json` | Attribute | Type | Description | |---|---|---| | payload_id | long | Unique identifier of the payload item | | account_model | integer | Account Model. Default: 0 | | deletion_policy | integer | Deletion Policy. Default: 1 | | disk_level_caching | integer | Disk Level Caching. Default: 50 | | disk_level_deletion | integer | Disk Level Deletion. Default: 25 | | enable_account_manager | boolean | Enable Account Manager. Default: false | | enable_shared_pc_mode | boolean | Enable Shared Pc Mode. Default: false | | inactive_threshold | integer | Inactive Threshold. Default: 30 | | enable_shared_pc_mode_with_onedrive_sync | boolean | Enable Shared Pc Mode With Onedrive Sync. Default: false | | kiosk_mode_aumid | string | Kiosk Mode Aumid | | kiosk_mode_user_tile_display_text | string | Kiosk Mode User Tile Display Text | | maintenance_start_time | integer | Maintenance Start Time. Default: 0 | | max_pagefile_size_mb | integer | Max Pagefile Size Mb. Default: 1024 | | restrict_local_storage | boolean | Restrict Local Storage. Default: false | | set_edu_policies | boolean | Set Edu Policies. Default: false | | set_power_policies | boolean | Set Power Policies. Default: false | | signin_on_resume | boolean | Signin On Resume. Default: false | | sleep_timeout | integer | Sleep Timeout. Default: 300 | ### Possible Response Codes | Code | Type | |---|---| | 200 | HTTP code | ### Sample Response: HTTP 200 Shared PC payload item successfully modified ```json { "restrict_local_storage": false, "payload_id": "9007199254741295", "maintenance_start_time": "0", "set_edu_policies": true, "sleep_timeout": "300", "signin_on_resume": false, "set_power_policies": false, "kiosk_mode_user_tile_display_text": "", "kiosk_mode_aumid": "", "disk_level_caching": "50", "disk_level_deletion": "25", "inactive_threshold": "30", "account_model": "0", "deletion_policy": "1", "enable_account_manager": false, "enable_shared_pc_mode": true, "enable_shared_pc_mode_with_onedrive_sync": false, "max_pagefile_size_mb": "1024" } ``` ## Rate Limiting ![](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.