| 信息 |
|---|
调用须知:
|
| 接口信息 | |||
|---|---|---|---|
| 名称 | 为指定空间的用户/组移除权限 | ||
| 地址 | /rest/tools/1.0/api/spacePermission/remove | ||
| 请求方式 | POST | ||
| 返回类型格式 | Json | ||
| 认证方式 | Basic,token认证 | ||
| Header参数说明 | |||
| 参数名称 | 是否必须 | 参数类型 | 描述 |
ContentType | Y | String | application/json |
| body参数说明 | |||
参数名称 | 是否必须 | 类型 | 描述 |
type | Y | String | 搜索类型; 用户:user 组:group |
name | Y | String | 用户名/组名,根据type的值,确定传入用户名或者组名称 |
spaceKey | Y | String | 空间key |
spacePermissions | Y | String[] | 权限类型的数组集合 |
| 返回值格式 | |||
| 返回字段 | 类型 | 描述 | |
| code | int | 见附录-码值 | |
| msg | String | 见附录-码值 | |
| data | String | { "userType": "用户类型", "name": "用户名/组名", "permissionsBeans": [{ "id": 拥有的权限id, "type": "拥有的权限类型" },{ "id": 1638443, "type": "REMOVEBLOG" }] } | |
Postman调用示例
body请求参数示例:
| 代码块 |
|---|
{
"type":"user",
"name":"tt-david",
"spaceKey":"DEMO",
"spacePermissions":["REMOVEOWNCONTENT"]
} |
返回值示例:
| 代码块 |
|---|
{
"code": 0,
"msg": "Success",
"data": {
"type": "user",
"name": "tt-david",
"permissionsBeans": [
{
"id": 1278023,
"type": "VIEWSPACE"
},
]
}
} |
