保存组织架构

更新时间:2021-01-24 11:13:02

接口说明

新增或修改组织架构的数据

基本信息

请求方式:POST

请求路径:

https://prod.open-api.mysre.cn/organization/save

请求参数

参数名 参数位置 参数类型 必填 默认值 示例 描述
tenant_code query string 租户号
id body string 39ee5c05-f6ec-0999-2328-ac26a35e5ebd 组织 ID
name body string 深圳公司 组织名称
parent_id body string 39ee5c02-4caf-433c-ef5b-6b1d0f753148 父级组织 ID
is_company body number 1 1 是否公司,1-公司、0-部门
city body string 深圳 组织所属城市

请求示例

[
  {
    "id":"39ee5c05-f6ec-0999-2328-ac26a35e5ebd",
    "name":"深圳公司",
    "parent_id":"39ee5c02-4caf-433c-ef5b-6b1d0f753148",
    "is_company":1,
    "city":"深圳"
  },
  {
    "id":"39ee5c96-2a66-9b1d-4c6a-086ae5060841",
    "name":"深圳南山部门",
    "parent_id":"39ee5c05-f6ec-0999-2328-ac26a35e5ebd",
    "is_company":0,
    "city":""
  }
]

返回成功示例

{
  "errcode": 0,
  "errMsg": "成功",
  "data": []
}

返回参数说明(成功)

参数名 参数类型 描述
errcode number 错误码
errMsg string 错误描述
data array 接口返回数据

失败返回示例

{
  "errcode": 9000,
  "errMsg": "租户code不能为空",
  "data": []
}

返回参数说明(失败)

参数名 参数类型 描述
errcode number 错误码
errMsg string 错误描述
data array 接口返回数据

results matching ""

    No results matching ""