文档中心 > API类目 > 智慧园区API

alibaba.campus.space.floor.insert (新增楼层)

新增楼层

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
company_id Number 必须 10000 公司id
campus_id Number 必须 100001 园区id
entity Floor 可选 实体
  • └ gmt_modified
  • Date
  • 必须
  • 2020-12-12 12:12:12
  • 修改时间
  • └ modifier
  • String
  • 必须
  • -1
  • 修改人
  • └ geo_floor_id
  • Number
  • 可选
  • 1
  • 地图楼层id
  • └ description
  • String
  • 可选
  • xx
  • 描述
  • └ uuid
  • String
  • 必须
  • xxx
  • uuid
  • └ height_str
  • String
  • 可选
  • 1.1
  • 高度
  • └ id
  • Number
  • 必须
  • 1000
  • id
  • └ creator
  • String
  • 必须
  • -1
  • 创建人
  • └ order_no
  • Number
  • 必须
  • 1
  • 排序号
  • └ area_str
  • String
  • 可选
  • 1.0
  • 面积
  • └ gmt_create
  • Date
  • 必须
  • 2020-12-12 12:12:12
  • 创建时间
  • └ building_id
  • Number
  • 必须
  • 100001
  • 楼宇id
  • └ name
  • String
  • 必须
  • 1F
  • 名称
  • └ status
  • Number
  • 必须
  • 1
  • 状态

响应参数

名称 类型 示例值 描述
res Boolean 是否成功
errorcode String 错误码
content Boolean Boolean
error_msg String 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaCampusSpaceFloorInsertRequest req = new AlibabaCampusSpaceFloorInsertRequest();
req.setCompanyId(10000L);
req.setCampusId(100001L);
AlibabaCampusSpaceFloorInsertRequest.Floor obj1 = new AlibabaCampusSpaceFloorInsertRequest.Floor();
obj1.setGmtModified(StringUtils.parseDateTime("2020-12-12 12:12:12"));
obj1.setModifier("-1");
obj1.setGeoFloorId(1L);
obj1.setDescription("xx");
obj1.setUuid("xxx");
obj1.setHeightStr("1.1");
obj1.setId(1000L);
obj1.setCreator("-1");
obj1.setOrderNo(1L);
obj1.setAreaStr("1.0");
obj1.setGmtCreate(StringUtils.parseDateTime("2020-12-12 12:12:12"));
obj1.setBuildingId(100001L);
obj1.setName("1F");
obj1.setStatus(1L);
req.setEntity(obj1);
AlibabaCampusSpaceFloorInsertResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_campus_space_floor_insert_response>
    <res></res>
    <errorcode></errorcode>
    <content></content>
    <error_msg></error_msg>
</alibaba_campus_space_floor_insert_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部