增加权限
POST {{base_url}}/drive/v1/permissions/:token/members?type=string&need_notification=boolean
Reference
- 参考接口 增加权限
Success Response Sample
{
"code": 0,
"data": {
"fail_members": [],
"is_all_success": true,
"permission_version": "0"
},
"msg": "Success"
}
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
type | string | 权限客体类型,可选值有: |
- doc:文档
- sheet:电子表格
- file:云空间文件
- wiki:知识库节点(暂不支持)
- bitable:多维表格
- docx:文档 |
|
need_notification
| string | | 添加权限后是否通知对方 |
Request Body
{"member_type"=>"string", "member_id"=>"string", "perm"=>"string"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string | user_access_token 或 tenant_access_token | |
值格式:"Bearer access_token" |
示例值:"Bearer u-7f1bcd13fc57d46bac21793a18e560" |
| Content-Type
| string | | 固定值:"application/json; charset=utf-8" |