{"base_path":"/","components":null,"consumes":"[\"application/json;charset=UTF-8\"]","definitions":{"UpdateDeviceChannelRequestBody":{"properties":{"state":{"description":"视频流状态。\n- ACTIVE:进行视频邀约。\n- STOPPED:断开视频。\n\n不区分大小写。","enum":["ACTIVE","STOPPED"],"example":"ACTIVE","type":"string"},"tcp_priority":{"description":"是否优先使用TCP传输的配置。\n- TRUE:如果IPC设备支持TCP协议传输,通道进行视频邀约时优先使用TCP协议接入到VIS服务中。\n- FALSE:IPC设备通道进行视频邀约时优先使用UDP协议接入到VIS服务中。NVR设备通道暂时不支持配置相关配置。\n\n默认值FALSE。","enum":[true,false],"example":"","type":"string"}},"required":["state"]},"UpdateResponse":{"properties":{"result":{"description":"处理成功时返回","example":"success","type":"string"}}}},"description":null,"group_id":"5346b7c1dc284228a28795d5bcbd550d","host":"vis.cn-north-4.myhuaweicloud.com","id":"5bca712c7ed04dbd92bac752a7aea324","info_version":"v1","method":"put","name":"UpdateDeviceChannel","parameters":{"Authorization":{"description":"使用AK/SK方式认证时必选,携带的鉴权信息。","in":"header","maxLength":256,"minLength":1,"name":"Authorization","required":false,"type":"string","x-example":"SDK-HMAC-SHA256 Access=xxx, SignedHeaders=content-type;host;x-sdk-date, Signature=xxx"},"X-Auth-Token":{"description":"普通租户的token。","in":"header","maxLength":10240,"minLength":1,"name":"X-Auth-Token","required":true,"type":"string"},"X-Project-Id":{"description":"使用AK/SK方式认证时必选,携带项目ID信息。","in":"header","maxLength":64,"minLength":1,"name":"X-Project-Id","required":false,"type":"string","x-example":"70b76xxxxxx34253880af501cdxxxxxx"},"X-Sdk-Date":{"description":"使用AK/SK方式认证时必选,请求的发生时间。","in":"header","maxLength":256,"minLength":1,"name":"X-Sdk-Date","required":false,"type":"string","x-example":"20191115T033655Z"},"project_id":{"description":"项目ID,获取方法请参考[获取项目ID](https://support.huaweicloud.com/api-vis/vis_03_0005.html)","in":"path","maxLength":32,"minLength":32,"name":"project_id","required":true,"type":"string"}},"paths":{"/v1/{project_id}/devices/{device_id}/channels/{channel_id}":{"put":{"consumes":[],"deprecated":false,"description":"该接口用于GB/T28181设备进行“视频邀约”和“取消邀约”,配置优先使用TCP传输的配置。","operationId":"UpdateDeviceChannel","parameters":[{"$ref":"#/parameters/project_id"},{"$ref":"#/parameters/X-Auth-Token"},{"$ref":"#/parameters/Authorization"},{"$ref":"#/parameters/X-Sdk-Date"},{"$ref":"#/parameters/X-Project-Id"},{"description":"设备ID","in":"path","name":"device_id","required":true,"type":"string","x-example":"device123123***f"},{"description":"通道ID","in":"path","name":"channel_id","required":true,"type":"string","x-example":"chanadfasdf"},{"description":"更新设备通道信息请求体\"","in":"body","name":"UpdateDeviceChannelRequest","required":false,"schema":{"$ref":"#/definitions/UpdateDeviceChannelRequestBody"}}],"produces":[],"responses":{"200":{"description":"正常","examples":{"application/json":{"result":"success"}},"schema":{"$ref":"#/definitions/UpdateResponse"}},"400":{"description":"请求错误","examples":{"application/json":{"error_code":"VIS.0312","error_msg":"The device is not successfully registered or is offline."}}}},"summary":"更新GB/T28181设备通道信息","tags":["设备管理"],"x-apiexplorer-hide":"N","x-constraint":"GB/T28181设备通道视频流名称后缀不允许修改。","x-is-registered":"Y","x-name":"更新GB/T28181设备通道信息","x-request-examples-1":{"state":"ACTIVE"},"x-request-examples-url-1":"PUT /v1/3266392d188c47d09948b1**********/devices/device123123sadf/channels/chanadfasdf","x-support-sdk":"Y"}}},"product_short":"VIS","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"更新GB/T28181设备通道信息","tags":"设备管理","uri":null,"version":"2.0"}