# Modify the configuration of a Shared PC payload item within a profile Modify Windows Shared PC policy payload ## Endpoints **PUT** `/api/v1/mdm/profiles/{profile_id}/payloads/windowssharedpcpolicy/payloaditems/{payload_id}` ## 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/windowssharedpcpolicy/payloaditems/{payload_id}` ## Scope `MDMOnDemand.MDMDeviceMgmt.UPDATE` ## 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. - **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/windows-get-shared-pc-payload.html) response. ### Request Body `application/json` JSON object: - **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: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' \ --header 'Content-Type: application/json' \ --data '{}' ``` ## 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 Parameters ### HTTP Code 200 Response body: `application/json` JSON object: - **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 - **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 Limit **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.