全部產品
Search
文件中心

Drive and Photo Service:FileRemovePermission - 取消檔案分享權限設定授權

更新時間:Feb 26, 2026

取消檔案分享權限設定授權。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

調試

授權資訊

當前API暫無授權資訊透出。

請求文法

POST /v2/file/remove_permission HTTP/1.1

請求參數

名稱

類型

必填

描述

樣本值

body

object

請求體參數。

drive_id

string

空間 id

1

file_id

string

檔案 id

4221bf6e6ab43c255edc4463bf3a6f5f5d317406

member_list

array<object>

共用的使用者物件集合

object

identity Identity

可授權對象,表示一個使用者或者一個群組

role_id

string

目前支援兩種方式設定許可權,一種是通過指定角色設定許可權,另一種是自訂動作許可權,此欄位用於指定角色設定許可權,與 action_list 互斥,當兩個欄位同時設定時,以此欄位為準

目前支援:

SystemFileOwner(檔案協同)

SystemFileDownloader(下載者)

SystemFileEditor(編輯者)

SystemFileEditorWithoutDelete(無刪除編輯者)

SystemFileEditorWithoutShareLink(無分享編輯者)

SystemFileMetaViewer(可見列表)

SystemFileUploader(上傳者)、SystemFileUploaderAndDownloader(上傳/下載者)

SystemFileDownloaderWithShareLink(下載/分享者)

SystemFileUploaderAndDownloaderWithShareLink(上傳/下載/分享者)

SystemFileUploaderAndViewer(預覽/上傳者)

SystemFileUploaderWithShareLink(上傳/分享者)

SystemFileViewer(預覽者)

SystemFileDownloader

返回參數

名稱

類型

描述

樣本值

當前API暫無返回參數

樣本

正常返回樣本

JSON格式

{}

錯誤碼

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情