Skip to content

获取文档权限角色列表

标签文件权限角色

请求说明

字段
请求地址
https://openapi.wps.cn/v7/drives/{drive_id}/roles
HTTP 方法
GET
接口描述
获取文档权限角色列表
签名方式
KSO-1
限频策略
权限要求
查询和管理文件权限(应用授权) kso.file_permission.readwrite
查询和管理文件权限(用户授权) kso.file_permission.readwrite
查询文件权限(用户授权) kso.file_permission.read

路径参数 (Path)

属性名类型是否必填描述可选值
drive_id
stringdrive_id表示盘id,参考 drive.list_drives接口返回的data.items[?].id-

响应体(Response)

HTTP状态码: 200
响应体格式: application/json

没有可用的数据

响应体示例

json
{
  "data": {
    "items": [
      {
        "id": "string",
        "name": "string",
        "permission_bits": {
          "comment": true,
          "copy": true,
          "copy_content": true,
          "delete": true,
          "download": true,
          "history": true,
          "list": true,
          "move": true,
          "new_empty": true,
          "perm_ctl": true,
          "preview": true,
          "print": true,
          "rename": true,
          "saveas": true,
          "secret": true,
          "share": true,
          "update": true,
          "upload": true
        },
        "type": "preset"
      }
    ]
  },
  "code": 0,
  "msg": "string"
}