# Updates the screen recording settings for remote control sessions Saves the screen recording configuration for remote control sessions, including enable/disable toggle, frame rate, codec, color quality, storage limits, and whether authenticated download is required. Accepts a JSON body with the screen recording settings model. ## Endpoints `PUT /dcapi/tools/remoteControl/screenRecording` ## Request URL `https://{serverurl}/dcapi/tools/remoteControl/screenRecording` ## Scope `DesktopCentralCloud.RemoteControl.UPDATE` ## Header `Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52` ## Request Parameters ### Request Headers | Parameter | Type | Required | Value | |---|---|---|---| | Accept | string | Mandatory | `application/scrRecSettingsStatus.v1+json` | | Content-Type | string | Mandatory | `application/scrRecSettingsInfo.v1+json` | ### Request Body `application/json` | Attribute | Type | Required | |---|---|---| | recErrAction | string | Optional | | isNotifyUserEnabled | string | Optional | | notifyMessage | string | Mandatory | | isScreenRecEnabled | string | Optional | | isAuthVideoDownload | string | Optional | | framesPerSec | string | Optional | | recMaintainsSize | integer | Optional | | codecType | string | Optional | | driveFreeSpace | string | Optional | | colorQuality | string | Optional | ## Sample Request ### Curl ```curl curl --request PUT \ --url https://appdomains/dcapi/tools/remoteControl/screenRecording \ --header 'Accept: application/scrRecSettingsStatus.v1+json' \ --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' \ --header 'Content-Type: application/scrRecSettingsInfo.v1+json' \ --data '{"notifyMessage":"This session is being recorded."}' ``` ### Java ```java import java.net.URI; import java.net.http.HttpClient; import java.net.http.HttpRequest; import java.net.http.HttpResponse; import java.io.IOException; import java.net.http.HttpTimeoutException; public class Main { public static void main(String[] args) { HttpRequest request = HttpRequest.newBuilder() .uri(URI.create("https://appdomains/dcapi/tools/remoteControl/screenRecording")) .header("Content-Type", "application/scrRecSettingsInfo.v1+json") .header("Accept", "application/scrRecSettingsStatus.v1+json") .header("Authorization", "Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52") .method("PUT", HttpRequest.BodyPublishers.ofString("{\"notifyMessage\":\"This session is being recorded.\"}")) .build(); HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString()); System.out.println(response.body()); } } ``` ### Python ```python import http.client conn = http.client.HTTPSConnection("appdomains") payload = "{\"notifyMessage\":\"This session is being recorded.\"}" headers = { 'Content-Type': "application/scrRecSettingsInfo.v1+json", 'Accept': "application/scrRecSettingsStatus.v1+json", 'Authorization': "Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52" } conn.request("PUT", "/dcapi/tools/remoteControl/screenRecording", payload, headers) res = conn.getresponse() data = res.read() print(data.decode("utf-8")) ``` ### Deluge ```deluge headersMap = Map(); headersMap.put("Accept", "application/scrRecSettingsStatus.v1+json"); headersMap.put("Content-Type", "application/scrRecSettingsInfo.v1+json"); data=Map(); data.put("notifyMessage","value"); response = invokeUrl [ url: "https://appDomains/dcapi/tools/remoteControl/screenRecording" type: PUT headers: headersMap body: data connection: connection_name ] info response; ``` ### PowerShell ```powershell $headers=@{} $headers.Add("Content-Type", "application/scrRecSettingsInfo.v1+json") $headers.Add("Accept", "application/scrRecSettingsStatus.v1+json") $headers.Add("Authorization", "Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52") $response = Invoke-WebRequest -Uri 'https://appdomains/dcapi/tools/remoteControl/screenRecording' -Method PUT -Headers $headers -ContentType 'application/scrRecSettingsInfo.v1+json' -Body '{"notifyMessage":"This session is being recorded."}' ``` ## Sample Request Body ```json { "recErrAction": 1, "isNotifyUserEnabled": 1, "notifyMessage": "This session is being recorded.", "isScreenRecEnabled": 1, "framesPerSec": 15, "recMaintainsSize": 500, "codecType": 1, "driveFreeSpace": 1, "colorQuality": 2, "isAuthVideoDownload": 0 } ``` ## Response Parameters ### HTTP Code 200 Response body: `application/json` | Attribute | Type | Description | |---|---|---| | status | string | Result of the operation: success or failure | ## Possible Response Codes | HTTP Code | |---| | 200 | ## Sample Response: HTTP 200 ```json { "status": "success" } ``` ![ ](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.