保存项目

更新时间:2021-01-24 11:14:16

接口说明

新增或修改项目数据

基本信息

请求方式:POST

请求路径:

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

请求参数

参数名 参数位置 参数类型 必填 默认值 示例 描述
tenant_code query string 租户号
id body string 39f26c3c-c6a0-d6a2-fe30-80cb32f2338b 项目 ID
name body string 演示项目 项目名称
corp_id body string 39ee5c05-f6ec-0999-2328-ac26a35e5ebd 项目所属公司 ID
parent_id body string 父级项目 ID
parent_code body string 父级项目编码,parent_code 跟 parent_id 必须填一个,默认 parent_id
level body string 项目层级
is_end body string 1 是否末级项目,1-是、0-不是。不填默认 1
city body string 200 项目所属城市
address body string 详细地址

请求示例

[
  {
    "id":"39f26c3c-c6a0-d6a2-fe30-80cb32f2338b",
    "name":"演示项目",
    "corp_id":"39ee5c05-f6ec-0999-2328-ac26a35e5ebd",
    "parent_id":"",
    "city":"200"
  },
  {
    "id":"39f26c3c-c6e4-556b-3cee-64133552e9a0",
    "name":"演示项目-2分期",
    "corp_id":"39ee5c05-f6ec-0999-2328-ac26a35e5ebd",
    "parent_id":"39f26c3c-c6a0-d6a2-fe30-80cb32f2338b",
    "city":"200"
 }
]

返回成功示例

{
  "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 ""