保存用户项目授权

更新时间:2021-01-25 09:59:20

接口说明

保存用户项目授权

基本信息

请求方式:POST

请求路径:

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

请求参数

参数名 参数位置 参数类型 必填 默认值 示例 描述
tenant_code query string 租户 code
user_id body string 39eca17e-03b6-c54e-91fe-58e9562575fe 用户
project_ids body array 项目 ID 集合
company_ids body array 公司 ID 集合

请求示例

[
    {
        "user_id":"39eca17e-03b6-c54e-91fe-58e9562575fe",
        "project_ids":[
            "39f2c45d-0649-eabb-87be-8f73a541e3c7",
            "39de2091-e78-5370-f399-99aecba5230e"
        ],
        "company_ids":[]
     }
]

返回成功示例

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