文档首页/ ISDP/ API参考/ API接口/ 作业对象管理/ 批量新增作业对象(API名称:batchAddAndUpdateTaskObject)
更新时间:2024-07-22 GMT+08:00
分享

批量新增作业对象(API名称:batchAddAndUpdateTaskObject)

功能介绍

用于批量新增作业对象

相关接口

接口名称

调用说明

获取Token

调用该接口获取到Token,再调用其他接口时,需要在请求消息头中添加“Authorization”,其值即为Token。

删除作业对象

如新增错误可进行删除

URL

请求方式

HTTPS地址

服务架构

消息体类型

POST

https://isdp+域名/openapi/v1/taskObjectFacede/batchAddAndUpdateTaskObject

OpenAPI

application/json

请求头

KEY

VALUE

是否必填

描述

Content-Type

application/json

Authorization

bearer ${access_token}

bearer +“ ”+5.2.1中获取的access_token的值

请求参数

参数

类型

是否必填

描述

signSiteModels

object

data如下(批量条数不能超过5条)

Data入参:

字段名

字段名称

是否必填

类型

示例

signSiteCode

作业对象编码

String

测试作业对象编码111

signSiteName

作业对象名称

String

测试作业对象名称111

signSiteType

作业对象类型

String

2

longitude

经度

String

-18

latitude

纬度

String

-90

customerCode

客户编码

String

fdsafsda

supplierCode

供应商编码

String

作业对象名称

signSiteAddress

详细地址

String

1

secret

是否敏感编码

String

0

ownerCode

责任人编码(多个用英文逗号隔开)

String

100XXX@isdp,personTest5

ownerGroupCode

责任群组编码

String

321e

orgNo

组织编码

String

Ctest1

projectNo

项目编码

String

3213213

adminRegionName

末级行政区域编码

String

111111,112,234232

deviceId

设备Id

String

1234

coordinate

位置坐标xyz

String

x,y,z

positionSystem

定位系统类型

String

不涉及 或者 GPS 或者UWB

说明:

longitude和latitude有值的情况下,此参数必填,positionSystem为GPS,否则会导致经纬度显示不全。

coordinate有值情况,positionSystem为UWB。

taskObjectGroupId

作业对象分组

String

123

deviceTypeId

设备类型Id

String

123

signSiteParentId

上级作业对象Id

String

123

signSiteSource

第三方数据来源

String

零售

响应参数

参数

类型

描述

stateCode

String

处理结果(0代表success)

errorMessage

String

错误消息

result

Object

返回结果

请求示例

{
"signSiteModels":[
    {
      "signSiteCode":"测试作业对象编码001",
      "signSiteName":"测试作业对象名称001",
      "signSiteType":"屋顶站",
      "longitude":-180,
      "latitude":-90,
      "customerCode":"fdsafsda",
      "supplierCode":"",
      "signSiteAddress":"3213213123",
      "secret":"0",
      "ownerCode":"100XXX@isdp,personTest5",
      "ownerGroupCode":"",
      "orgNo":"Ctest1",
      "projectNo":"3213213",
      "adminRegionName":"111111,112,234232"
      "deviceId":"11111",
      "deviceTypeId ": 12345, 
      "coordinate":"11,22,33" ,
      "positionSystem":"UWB",
      "taskObjectGroupId": 1234, 
      "signSiteParentId": 1234,
      "sighSiteSource": "第三方"
    },
     {
      "signSiteCode":"测试作业对象编码002",
      "signSiteName":"测试作业对象名称002",
      "signSiteType":"屋顶站",
      "longitude":-180,
      "latitude":-90,
      "customerCode":"fdsafsda",
      "supplierCode":"",
      "signSiteAddress":"3213213123",
      "secret":"0",
      "ownerCode":"100XXX@isdp,personTest5",
      "ownerGroupCode":"",
      "orgNo":"Ctest1",
      "projectNo":"3213213",
      "adminRegionName":"111111,112,234232"
      "deviceId":"11111",
      "deviceTypeId ": 12345, 
      "coordinate":"11,22,33" ,
      "positionSystem":"UWB",
      "taskObjectGroupId": 1234, 
      "signSiteParentId": 1234,
      "sighSiteSource": "第三方"
    },
     {
      "signSiteCode":"测试作业对象编码003",
      "signSiteName":"测试作业对象名称003",
      "signSiteType":"屋顶站",
      "longitude":-180,
      "latitude":-90,
      "customerCode":"fdsafsda",
      "supplierCode":"",
      "signSiteAddress":"3213213123",
      "secret":"0",
      "ownerCode":"100XXX@isdp,personTest5",
      "ownerGroupCode":"",
      "orgNo":"Ctest1",
      "projectNo":"3213213",
      "adminRegionName":"111111,112,234232"
      "deviceId":"11111",
      "deviceTypeId ": 12345, 
      "coordinate":"11,22,33" ,
      "positionSystem":"UWB",
      "taskObjectGroupId": 1234, 
      "signSiteParentId": 1234,
      "sighSiteSource": "第三方"
    },
     {
      "signSiteCode":"测试作业对象编码004",
      "signSiteName":"测试作业对象名称004",
      "signSiteType":"屋顶站",
      "longitude":-180,
      "latitude":-90,
      "customerCode":"fdsafsda",
      "supplierCode":"",
      "signSiteAddress":"3213213123",
      "secret":"0",
      "ownerCode":"100XXX@isdp,personTest5",
      "ownerGroupCode":"",
      "orgNo":"Ctest1",
      "projectNo":"3213213",
      "adminRegionName":"111111,112,234232"
      "deviceId":"11111",
      "deviceTypeId ": 12345, 
      "coordinate":"11,22,33" ,
      "positionSystem":"UWB",
      "taskObjectGroupId": 1234, 
      "signSiteParentId": 1234,
      "sighSiteSource": "第三方"
    },
     {
      "signSiteCode":"测试作业对象编码005",
      "signSiteName":"测试作业对象名称005",
      "signSiteType":"屋顶站",
      "longitude":-180,
      "latitude":-90,
      "customerCode":"fdsafsda",
      "supplierCode":"",
      "signSiteAddress":"3213213123",
      "secret":"0",
      "ownerCode":"100XXX@isdp,personTest5",
      "ownerGroupCode":"",
      "orgNo":"Ctest1",
      "projectNo":"3213213",
      "adminRegionName":"111111,112,234232"
      "deviceId":"11111",
      "deviceTypeId ": 12345, 
      "coordinate":"11,22,33" ,
      "positionSystem":"UWB",
      "taskObjectGroupId": 1234, 
      "signSiteParentId": 1234,
      "sighSiteSource": "第三方"
    },
     {
      "signSiteCode":"测试作业对象编码006",
      "signSiteName":"测试作业对象名称006",
      "signSiteType":"屋顶站",
      "longitude":-180,
      "latitude":-90,
      "customerCode":"fdsafsda",
      "supplierCode":"",
      "signSiteAddress":"3213213123",
      "secret":"0",
      "ownerCode":"100XXX@isdp,personTest5",
      "ownerGroupCode":"",
      "orgNo":"Ctest1",
      "projectNo":"3213213",
      "adminRegionName":"111111,112,234232"
      "deviceId":"11111",
      "deviceTypeId ": 12345, 
      "coordinate":"11,22,33" ,
      "positionSystem":"UWB",
      "taskObjectGroupId": 1234, 
      "signSiteParentId": 1234,
      "sighSiteSource": "第三方"
    }
    
  ]
}

响应示例

{
stateCode": "2",
"errorMessage": "新建条数不能超过5",
"result": null
}

状态码

状态码请参见状态码

错误码

错误码请参见错误码

相关文档