获取区域权限设置

标签【电子表格】

请求说明

字段
请求地址
https://openapi.wps.cn/v7/sheets/{file_id}/worksheets/{worksheet_id}/protection_ranges
HTTP 方法
GET
接口描述
签名方式
KSO-1
限频策略
权限要求
管理传统表格(应用授权) kso.sheets.readwrite
查询传统表格(应用授权) kso.sheets.read
管理传统表格(用户授权) kso.sheets.readwrite
查询传统表格(用户授权) kso.sheets.read

路径参数 (Path)

属性名类型是否必填描述可选值
file_id
string文件ID-
worksheet_id
integer工作表ID-

响应体(Response)

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

响应体示例

json
{
  "data": {
    "protection_infos": [
      {
        "master_id": "string",
        "other_user_permission": "user_access_permission_visible",
        "protection_info": [
          {
            "id": "string",
            "others_access_permission": "others_access_permission_invisible",
            "protection_ranges": [
              {
                "col_from": 0,
                "col_to": 0,
                "row_from": 0,
                "row_to": 0
              }
            ],
            "protection_user_data": [
              {
                "access_permission": "user_access_permission_visible",
                "user_id": "string"
              }
            ],
            "range_creator_id": "string"
          }
        ]
      }
    ]
  },
  "code": 0,
  "msg": "string"
}