更新时间:2023-06-21 07:13:12下载pdf
本文介绍修改组织的 API。
修改组织的具体信息。
PUT: /v1.0/iot-02/community/structure/{structure_id}
参数名 | 类型 | 参数位置 | 是否必填 | 说明 |
---|---|---|---|---|
structure_id | String | uri | true | 组织 ID |
body
说明
参数名 | 类型 | 参数位置 | 是否必填 | 说明 |
---|---|---|---|---|
parent_structure_id | String | false | 父组织,为空表示根组织 | |
structure_name | String | true | 组织名称 | |
address_code | String | false | 地址(省市区街道的code,用逗号分割)参考:http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/ | |
address_detail | String | false | 详细地址 | |
contact | String | true | 联系人 | |
contact_mobile | String | true | 联系人电话 | |
contact_email | String | false | 联系人邮箱 |
参数名 | 类型 | 说明 |
---|---|---|
result | Boolean | 是否成功 |
PUT: /v1.0/iot-02/community/structure/137209008422933xxxx
{
"parent_structure_id": "138228055157827xxxx",
"structure_name": "xxxx有限公司",
"location": [
{
"level": "1",
"has_children": true,
"name": "上海市",
"full_name": "",
"full_id": "CNH,310000",
"id": "310000"
},
{
"level": "2",
"has_children": true,
"name": "市辖区",
"full_name": "",
"full_id": "CHN,310000,310100",
"id": "310100"
},
{
"level": "3",
"has_children": true,
"name": "浦东新区",
"full_name": "",
"full_id": "CHN,310000,310100,310115",
"id": "310115"
},
{
"level": "4",
"has_children": true,
"name": "金杨新村街道",
"full_name": "",
"full_id": "CHN,310000,310100,310115,310115012",
"id": "310115012"
},
{
"level": "5",
"has_children": false,
"name": "博山东路居委会",
"full_name": "",
"full_id": "CHN,310000,310100,310115,310115012,310115012054",
"id": "310115012054"
}
],
"address_detail": "111",
"contact": "测试",
"contact_mobile": "1345555xxxx",
"contact_email": "",
"business_license": "",
"address_code": "310000,310100,310115,310115012,310115012054",
"structure_id": "138470953518847xxxx"
}
true
参考 错误码。
该内容对您有帮助吗?
是意见反馈该内容对您有帮助吗?
是意见反馈