获取文件权限信息
POST
https://qyapi.weixin.qq.com/cgi-bin/wedrive/get_file_permission
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://qyapi.weixin.qq.com/cgi-bin/wedrive/get_file_permission' \
--header 'Content-Type: application/json' \
--data-raw '{
"fileid": "FILEID"
}'
响应示例响应示例
{
"errcode": 0,
"errmsg": "ok",
"share_range": {
"enable_corp_internal": true,
"corp_internal_auth": 1,
"enable_corp_external": false,
"corp_external_auth": 2
},
"secure_setting": {
"enable_readonly_copy": true,
"modify_only_by_admin": true,
"enable_readonly_comment": false,
"ban_share_external": true
},
"inherit_father_auth": {
"auth_list": [
{
"type": 1,
"userid": "USERID",
"auth": 1
}
],
"inherit": true
},
"file_member_list": [
{
"type": 1,
"userid": "USERID",
"auth": 1
}
],
"watermark": {
"text": "WATERMARK_TEXT",
"margin_type": 1,
"show_visitor_name": false,
"force_by_admin": false,
"show_text": false,
"force_by_space_admin": false
}
}
请求参数
Query 参数
access_token
string
可选
示例值:
ACCESS_TOKEN
Body 参数application/json
返回响应
修改于 2022-12-02 09:57:11