修改组织

更新时间:2023-06-15 06:04:21

本文介绍修改组织的 API。

接口描述

修改组织的具体信息。

接口地址

PUT: /v1.0/iot-02/community/structure/{structure_id}

请求参数

参数名类型参数位置是否必填说明
structure_idStringuritrue组织 ID

body 说明

参数名类型参数位置是否必填说明
parent_structure_idString false父组织,为空表示根组织
structure_nameString true组织名称
address_codeString false地址(省市区街道的code,用逗号分割)参考:http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/
address_detailString false详细地址
contactString true联系人
contact_mobileString true联系人电话
contact_emailString false联系人邮箱

返回参数

参数名类型说明
resultBoolean是否成功

请求示例

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

错误码

参考 错误码