Duplicate

Duplicate

post

Duplicate a Client policy.

Path parameters
idinteger · int32Required

The ID of the client policy to duplicate

Responses
201
Created
application/json; api-version=1.0
post
POST /api/ClientPolicies/{id}/Duplicate HTTP/1.1
Host: 
Accept: */*
{
  "id": 1,
  "adminCreate": "text",
  "adminLastMod": "text",
  "timeCreate": "2025-07-04T03:27:51.652Z",
  "timeLastMod": "2025-07-04T03:27:51.652Z",
  "name": "text",
  "enabled": true,
  "description": "text",
  "order": 1,
  "usersGroups": [
    {
      "account": "text",
      "type": [
        "1 = User",
        "2 = Group",
        "3 = ForeignSecurityPrincipal",
        "4 = Computer"
      ],
      "sid": "text"
    }
  ],
  "allowedOSes": {
    "chrome": true,
    "android": true,
    "webClient": true,
    "iOS": true,
    "linux": true,
    "mac": true,
    "windows": true
  },
  "gatewayRule": [
    "0 = Any",
    "1 = Connected",
    "2 = NotConnected",
    "3 = NotConnectedToGWs"
  ],
  "gatewayList": [
    "text"
  ],
  "macRule": [
    "0 = AnyMAC",
    "1 = AllowedMACs",
    "2 = NotAllowedMACs"
  ],
  "macList": [
    "text"
  ],
  "clientPolicy": {
    "redirection": {
      "enabled": true,
      "gateway": "text",
      "mode": [
        "0 = GatewayMode",
        "1 = GatewaySSLMode",
        "2 = DirectMode",
        "3 = DirectSSLMode"
      ],
      "serverPort": 1,
      "altGateway": "text"
    },
    "session": {
      "primaryConnection": {
        "enabled": true,
        "name": "text",
        "autoLogin": true,
        "authenticationType": [
          "0 = Credentials",
          "1 = SingleSignOn",
          "2 = SmartCard",
          "3 = Web"
        ],
        "savePassword": true,
        "domain": "text"
      },
      "secondaryConnections": {
        "enabled": true,
        "connectionList": [
          {
            "mode": [
              "0 = GatewayMode",
              "1 = DirectMode",
              "2 = GatewaySSLMode",
              "3 = DirectSSLMode"
            ],
            "server": "text",
            "serverPort": 1
          }
        ]
      },
      "reconnection": {
        "enabled": true,
        "enableReconnection": true,
        "connectionRetries": 1,
        "connectionBannerDelay": 1
      },
      "computerName": {
        "enabled": true,
        "overrideComputerName": "text"
      },
      "connectionAdvancedSettings": {
        "enabled": true,
        "connectionTimeout": 1,
        "connectionBannerDelay": 1,
        "showDesktopTimeout": 1
      },
      "webAuthentication": {
        "enabled": true,
        "defaultOsBrowser": true,
        "openBrowserOnLogout": true
      },
      "multiFactorAuthentication": {
        "enabled": true,
        "rememberLastUsedMethod": true
      },
      "sessionPreLaunch": {
        "enabled": true,
        "preLaunchMode": [
          "0 = Off",
          "1 = Basic",
          "2 = MachineLearning"
        ],
        "preLaunchExclude": [
          "text"
        ]
      },
      "localProxyAddress": {
        "enabled": true,
        "useLocalHostProxyIP": true
      },
      "settings": {
        "enabled": true,
        "colorDepths": [
          "0 = Colors256",
          "1 = HighColor15Bit",
          "2 = HighColor16Bit",
          "3 = TrueColor24Bit",
          "4 = HighestQuality32Bit"
        ],
        "graphicsAcceleration": [
          "0 = None",
          "1 = Basic",
          "2 = RemoteFx",
          "3 = RemoteFxAdaptive",
          "4 = AVCAdaptive"
        ]
      },
      "multiMonitor": {
        "enabled": true,
        "useAllMonitors": true,
        "displayConfig": [
          "0 = Primary",
          "1 = All",
          "2 = Selected"
        ]
      },
      "publishedApplications": {
        "enabled": true,
        "usePrimaryMonitor": true,
        "useDynamicDesktopResizing": true
      },
      "desktopOptions": {
        "enabled": true,
        "smartSizing": [
          "0 = Disabled",
          "1 = Scale",
          "2 = Resize"
        ],
        "embedDesktop": true,
        "spanDesktops": true,
        "fullScreenBar": [
          "0 = DoNotShow",
          "1 = ShowPinned",
          "2 = ShowUnPinned"
        ]
      },
      "browser": {
        "enabled": true,
        "browserOpenIn": [
          "0 = SameTab",
          "1 = NewTab"
        ]
      },
      "printing": {
        "enabled": true,
        "redirectPrinterTech": [
          "0 = None",
          "1 = RasUniversalPrintingTechnology",
          "2 = MicrosoftBasicPrintingTechnology",
          "3 = RasUniversalPrintingAndMsBasicTechnologies"
        ],
        "redirectPrinters": [
          "0 = All",
          "1 = DefaultOnly",
          "2 = SpecificOnly"
        ],
        "redirectPrintersList": [
          "text"
        ],
        "printingOptions": {
          "dataFormat": [
            "0 = ViewPDF_ExtApp",
            "1 = EMF",
            "2 = BMP",
            "4 = PrintPDF_ExtApp",
            "5 = PrintPDF"
          ],
          "printerPreference": [
            "0 = ServerPrefAllPrinters",
            "1 = ClientPrefAllPrinters",
            "2 = ClientPrefSpecificPrinters"
          ],
          "specificPreferredPrinter": "text"
        },
        "defaultPrintingSettings": {
          "defaultPrinterTech": [
            "0 = None",
            "1 = RasUniversalPrintingTechnology",
            "2 = MicrosoftBasicPrintingTechnology",
            "3 = RasUniversalPrintingAndMsBasicTechnologies"
          ],
          "forceTime": 1,
          "matchExactPrinterName": true,
          "updateRemoteDefPrinter": true
        }
      },
      "scanning": {
        "enabled": true,
        "scanTech": [
          "0 = None",
          "1 = WIA",
          "2 = TWAIN",
          "3 = WIAandTWAIN"
        ],
        "scanRedirect": [
          "0 = All",
          "1 = SpecificOnly"
        ],
        "scanListTwain": [
          "text"
        ],
        "scanListWia": [
          "text"
        ]
      },
      "audio": {
        "enabled": true,
        "audioModes": [
          "0 = BringToThisComputer",
          "1 = DoNotPlay",
          "2 = LeaveAtRemoteComputer"
        ],
        "audioQuality": [
          "0 = AdjustDynamically",
          "1 = UseMediumQuality",
          "2 = UseUncompressedQuality"
        ],
        "audioRec": true
      },
      "keyboard": {
        "enabled": true,
        "keyboardWindow": [
          "0 = LocalComputer",
          "1 = RemoteComputer",
          "2 = FullScreenMode"
        ],
        "sendUnicodeChars": true
      },
      "clipboard": {
        "enabled": true,
        "clipboardDirection": [
          "0 = None",
          "1 = ClientToServer",
          "2 = ServerToClient",
          "3 = Bidirectional"
        ]
      },
      "diskDrives": {
        "enabled": true,
        "redirectDrives": true,
        "dynamicDrives": true,
        "redirectToDrives": [
          "text"
        ],
        "useAllDrives": true,
        "driveCacheMode": [
          "0 = Disable",
          "1 = Enable",
          "2 = Fast"
        ]
      },
      "devices": {
        "enabled": true,
        "redirectDevices": true,
        "dynamicDevices": true,
        "useAllDevices": true,
        "redirectToDevices": [
          "text"
        ]
      },
      "ports": {
        "enabled": true,
        "redirectCOMPorts": true
      },
      "smartCards": {
        "enabled": true,
        "redirectSmartCards": true
      },
      "windowsTouchInput": {
        "enabled": true,
        "touchInput": true
      },
      "videoCaptureDevices": {
        "enabled": true,
        "enableCameras": true,
        "dynamicCameras": true,
        "videoCaptureUseAllDevices": true,
        "camerasIDs": [
          "text"
        ]
      },
      "avdMultimediaRedirection": {
        "enabled": true,
        "avdMultimediaRedir": true
      },
      "fileTransfer": {
        "enabled": true,
        "fileTransferMode": [
          "0 = Disabled",
          "1 = ClientToServer",
          "2 = ServerToClient",
          "3 = Bidirectional"
        ]
      },
      "performance": {
        "enabled": true,
        "netType": [
          "0 = Modem",
          "1 = LowSpeedBroadband",
          "2 = Satellite",
          "3 = HighSpeedBroadband",
          "4 = WAN",
          "5 = LAN",
          "6 = DetectConnectionQualityAuto"
        ],
        "desktopBackground": true,
        "fontSmoothing": true,
        "windowMenuAnimation": true,
        "desktopComposition": true,
        "themes": true,
        "bitmapCaching": true,
        "moveSizeFullDrag": true,
        "showContent": true
      },
      "compression": {
        "enabled": true,
        "compress": true,
        "scanningCompression": [
          "0 = CompressionDisabled",
          "1 = BestSpeed",
          "2 = BestSize",
          "3 = BasedOnConnectionSpeed"
        ],
        "printingCompression": [
          "0 = CompressionDisabled",
          "1 = BestSpeed",
          "2 = BestSize",
          "3 = BasedOnConnectionSpeed"
        ]
      },
      "network": {
        "enabled": true,
        "useProxyServer": true,
        "proxyHost": "text",
        "proxyPort": 1,
        "proxyAuthentication": true,
        "proxyUseLogonCredentials": true,
        "proxyUsername": "text",
        "proxyType": [
          "0 = SOCKS4",
          "1 = SOCKS4A",
          "2 = SOCKS5",
          "3 = HTTP1_1"
        ]
      },
      "advancedSettings": {
        "enabled": true,
        "useClientColors": true,
        "useClientSettings": true,
        "createShrtCut": true,
        "registerExt": true,
        "urlRedirection": true,
        "mailRedirection": true,
        "credAlwaysAsk": true,
        "allowSrvCmd": true,
        "promptSrvCmd": true,
        "credSSP": true,
        "redirPOS": true,
        "pre2000Cred": true,
        "disableRUDP": true,
        "doNotShowDriveRedirectionDlg": true
      },
      "serverAuthentication": {
        "enabled": true,
        "sessionAuthFailureAction": [
          "0 = Connect",
          "1 = DoNotConnect",
          "2 = Warn"
        ]
      }
    },
    "clientOptions": {
      "enabled": true,
      "appearance": {
        "enabled": true,
        "uiType": [
          "0 = Modern",
          "1 = Classic",
          "2 = User"
        ],
        "promptSwitchToModern": true
      },
      "connection": {
        "enabled": true,
        "connectionBannerType": [
          "0 = SplashWindow",
          "1 = TaskBarToastWindow",
          "2 = None"
        ],
        "autoRefreshFarms": true,
        "autoRefreshTime_Mins": 1,
        "whenAllSessionClosedAction": [
          "0 = Nothing",
          "1 = LockWorkstation",
          "2 = LogOff"
        ]
      },
      "logging": {
        "enabled": true,
        "logLevel": [
          "3 = Standard",
          "4 = Extended",
          "5 = Verbose"
        ],
        "loggingStartDateTime": "2025-07-04T03:27:51.652Z",
        "loggingDuration": 1,
        "allowViewLog": true,
        "allowClearLog": true
      },
      "pcKeyboard": {
        "enabled": true,
        "forcePCKeybd": true,
        "pcKeybd": [
          "1028 = ChineseTraditional",
          "1031 = German",
          "1033 = EnglishUS",
          "1034 = Spanish",
          "1036 = French",
          "1040 = Italian",
          "1041 = Japanese",
          "1042 = Korean",
          "1043 = Dutch",
          "1046 = PortugueseBrazil",
          "1049 = Russian",
          "1053 = Swedish",
          "1082 = Maltese",
          "2052 = ChineseSimplified",
          "2057 = EnglishUK",
          "2068 = NorwegianNynorsk",
          "2070 = Portuguese",
          "3084 = FrenchCanada"
        ]
      },
      "update": {
        "enabled": true,
        "checkForUpdateOnLaunch": true,
        "updateClientXmlUrl": "text"
      },
      "singleSignOn": {
        "enabled": true,
        "forceThirdPartySSO": true,
        "ssoProvGUID": "text"
      },
      "advanced": {
        "enabled": true,
        "global": {
          "enabled": true,
          "showFolders": true,
          "minimizeToTrayOnClose": true,
          "graphicsAccel": true,
          "clientWorkAreaBackground": true,
          "sslNoWarning": true,
          "swapMouse": true,
          "dpiAware": true,
          "autoAddFarm": true,
          "dontPromptAutoAddFarm": true,
          "suppErrMsgs": true,
          "clearCookies": true,
          "turnOffUDPOnClient": true
        },
        "language": {
          "enabled": true,
          "lang": [
            "0 = Default",
            "1 = English",
            "2 = German",
            "3 = Japanese",
            "5 = French",
            "6 = Spanish",
            "7 = Italian",
            "8 = Portuguese",
            "9 = ChineseSimplified",
            "10 = ChineseTraditional",
            "11 = Korean",
            "12 = Dutch"
          ]
        },
        "printing": {
          "enabled": true,
          "printInstallFonts": true,
          "printRawSupport": true,
          "allowEMFRasterization": true,
          "printUseCache": true,
          "printRefreshCache": true,
          "printUseFontsCache": true
        },
        "windowsClient": {
          "enabled": true,
          "autohide": true,
          "autoLaunch": true
        },
        "remoteFxUsbRedirection": {
          "enabled": true,
          "remoteFXUSBRedir": true
        },
        "customerExperienceProgram": {
          "enabled": true,
          "participateInCEP": true
        }
      }
    },
    "controlSettings": {
      "controlSettingsConnections": {
        "enabled": true,
        "dontAddNewASXGConns": true,
        "dontAddNewStdConns": true
      },
      "credentials": {
        "enabled": true,
        "dontSaveUsername": true,
        "dontSavePwds": true,
        "dontChangePwds": true
      },
      "importExport": {
        "enabled": true,
        "dontImportExport": true,
        "dontImport": true,
        "dontExport": true
      }
    }
  },
  "version": 1,
  "assignment": {
    "rules": [
      {
        "id": 1,
        "priority": 1,
        "enabled": true,
        "name": "text",
        "description": "text",
        "criteria": {
          "securityPrincipals": {
            "enabled": true,
            "matchingMode": [
              "0 = IsNotOneOfTheFollowing",
              "1 = IsOneOfTheFollowing"
            ],
            "members": [
              {
                "account": "text",
                "type": [
                  "1 = User",
                  "2 = Group",
                  "3 = ForeignSecurityPrincipal",
                  "4 = Computer"
                ],
                "sid": "text"
              }
            ]
          },
          "gateways": {
            "enabled": true,
            "matchingMode": [
              "0 = IsNotOneOfTheFollowing",
              "1 = IsOneOfTheFollowing"
            ],
            "members": [
              {
                "gatewayIP": "text"
              }
            ]
          },
          "oSs": {
            "enabled": true,
            "matchingMode": [
              "0 = IsNotOneOfTheFollowing",
              "1 = IsOneOfTheFollowing"
            ],
            "allowedOSes": {
              "chrome": true,
              "android": true,
              "webClient": true,
              "iOS": true,
              "linux": true,
              "mac": true,
              "wyse": true,
              "windows": true
            }
          },
          "iPs": {
            "enabled": true,
            "matchingMode": [
              "0 = IsNotOneOfTheFollowing",
              "1 = IsOneOfTheFollowing"
            ],
            "allowedIPs": {
              "iPv4s": [
                {
                  "from": "text",
                  "to": "text"
                }
              ],
              "iPv6s": [
                {
                  "from": "text",
                  "to": "text"
                }
              ]
            }
          },
          "hardwareIDs": {
            "enabled": true,
            "matchingMode": [
              "0 = IsNotOneOfTheFollowing",
              "1 = IsOneOfTheFollowing"
            ],
            "members": [
              {
                "hardwareID": "text"
              }
            ]
          },
          "access": [
            "0 = DenyCriteriaWhen",
            "1 = AllowCriteriaWhen"
          ]
        }
      }
    ],
    "default": [
      "0 = Deny",
      "1 = Allow"
    ]
  }
}

Was this helpful?