设置Windows更新策略v3 响应参数 参数 参数类型 说明 示例 下级对象 statusCode Integer 状态码,800表示请求成功,900表示请求失败。 800 error String 错误码。 ECPC1000 message String 提示信息。 OK. returnObj Boolean 是否设置成功。 枚举参数 无 请求示例 请求url 请求头header 无 请求体body { "strategyOid":"dsyxxxxxx", "windowsUpdatePolicy":{ "mode":"CUSTOMWSUS", "customWsus":{ "name":"企业WSUS策略", "description":"办公网终端更新策略", "updateService":{ "useWuServer":"ENABLED", "updateServerUrl":" "statisticsServerUrl":" "alternateDownloadServerUrl":" "fillEmptyContentUrlsEnable":true }, "automaticUpdates":"ENABLED", "updateMode":"AUTODOWNLOADSCHEDULEINSTALL", "installDay":"MONDAY", "installTime":{ "mode":"FIXEDHOUR", "hour":2 }, "automaticMaintenanceEnable":true, "detectionFrequency":{ "state":"ENABLED", "hours":6 }, "targetGroup":{ "state":"ENABLED", "name":"OFFICEDESKTOPS" }, "autoInstallMinorUpdates":"ENABLED", "elevateNonAdmins":"DISABLED", "noAutoRebootWithLoggedOnUsers":"ENABLED" } } } 响应示例 { "statusCode":800, "message":"OK.", "returnObj":true } 状态码 请参考 状态码 错误码 请参考 错误码