保存用户角色授权

更新时间:2021-01-23 21:04:15

接口说明

保存用户角色授权

基本信息

请求方式:POST

请求路径:

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

请求参数

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

请求示例

[
    {
        "user_id":"39eca17e-03b6-c54e-91fe-58e9562575fe",
        "role_ids":[
            "39f2c45d-0649-eabb-87be-8f73a541e3c7"
        ]
     }
]

返回成功示例

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