劳务-设置更新劳务班组

更新时间:2022-11-03 15:27:03

接口说明

劳务-设置更新劳务班组 唯一条件third_code+squads_name+proj_id

使用接口前请先阅读下文,超链接文档 劳务接入指引文档 sign生成规则

基本信息

请求方式: POST

请求路径:

https://prod.open-api.mysre.cn/aiot/open/labour/squads

请求参数

参数名 参数位置 参数类型 必填 默认值 示例 描述
tenant_code query string
third_code body string 第三方code
third_squads_id body string 第三方班组id
third_proj_id body string 第三方项目id
proj_id body string 明源项目id
squads_name body string 班组名称
leader_id body string 班长id
responsible_id body string 负责人id
third_responsible_id body string 第三方负责人id
third_leader_id body string 第三方班长id
entry_date body string 班组进场时间
withdrawal_date body string 班组退场时间
remark body string 班组备注
sign body string 签名
timestamp body string 10位时间戳

请求示例

get /aiot/open/labour/squads?tenant_code=tenant_code

返回成功示例

{
  "errcode":0,
  "errmsg":"",
  "data":{
    "squads_id":"3a071b29-3b09-61ac-bdcc-2f7649a8714e",
    "update":true
  }
}

返回参数说明(成功)

参数名 参数类型 描述
errcode number 状态code
errmsg string 异常信息
data object
data.squads_id string
data.update bool

失败返回示例

{
  "errcode":-1,
  "errmsg":"异常"
}

返回参数说明(失败)

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

results matching ""

    No results matching ""