同步标准设备项目关联关系

更新时间:2022-09-13 16:48:47

接口说明

使用接口前请联系相关人员获取third_code与secret信息 sign生成规则 当前接口绑定的项目关系只支持下面列表的设备使用 |设备|设备code| |-|-|-| |室内定位|indoor_location|

字段长度限制 |字段|长度限制| |-|-|-| |third_proj_name|varchar(64)| |third_proj_id|varchar(64)| |third_proj_addr|varchar(100)| |third_proj_type|varchar(64)|

基本信息

请求方式: POST

请求路径:

https://prod.open-api.mysre.cn/aiot/norm-device/set-relevance-project

请求参数

参数名 参数位置 参数类型 必填 默认值 示例 描述
tenant_code query string
type_code body string 设备类型,具体支持设备请参考本接口默认返回信息
third_code body string myyl 第三方code
sign body string 7c7e9ee60dd8656b5ccf1ab4dd11fea489344cb71 签名信息sha1( tenantCode thirdCode secret timestamp)
timestamp body string 1650012129 签名时间戳(10位)
proj_id body string 明源项目id
third_proj_id body string 第三方项目id
third_proj_name body string 项目1 第三方项目名称
third_proj_type body string 第三方项目类型(无严格要求)
third_proj_addr body string 广东省-深圳市-南山区-项目1 第三方项目地址(中文地址内容即可)
third_proj_longitude body string 10 第三方项目经度
third_proj_latitude body string 100 第三方项目纬度

请求示例

POST /aiot/norm-device/set-relevance-project 
form-data 表单

返回成功示例

{
    "errcode": 0,
    "errmsg": "",
    "data": {
        "id": "3a03385b-06af-d7de-6f1b-3b8aac262683",
        "action": "update"
    },
    "type_code": {
        "broadcast": "智能广播"
    }
}

返回参数说明(成功)

参数名 参数类型 描述
errcode number 异常code
errmsg string 异常信息
data object 数据信息
data.id string 设备当前操作的关系id
data.action string 操作类型
type_code object 设备类型
type_code.broadcast string 设备类型列表

失败返回示例

{
    "errcode": -1,
    "errmsg": "xxx 是必须的"
}

返回参数说明(失败)

参数名 参数类型 描述
errcode number 异常code
errmsg string 异常信息

results matching ""

    No results matching ""