POST/sharedrives/{sharedriveId}/files/{fileId}/permissions
共有ドライブのフォルダアクセス権限を登録する。
Access Token を指定します。
指定の方法や Access Token の取得方法は 共通仕様 を参照してください。
file
| Parameter | Type | Description |
|---|---|---|
| sharedriveId | string | 共有ドライブ ID (URL エンコードする) required example : @2101000000000008 |
| fileId | string | ファイル ID required example : NzExNTMwMDF8MTQ2NzA1NjAxMDAwMHxGfDA |
| Header | type | Description |
|---|---|---|
| Authorization | string | Bearer {token} required |
| Content-Type | string | application/json required example : application/json |
| Property | Type | Description |
|---|---|---|
| userId | string | ユーザー ID
required minLength : 1 |
| type | string | 編集権限
required Allowed values : READ, WRITE |
example
1{2 "userId": "works@example.com",3 "type": "WRITE"4}OK
| Property | Type | Description |
|---|---|---|
| permissions | array (FolderPermission) | 権限情報 |
| Property | Type | Description |
|---|---|---|
| permissionId | string | アクセス権限 ID required minLength : 1 readOnly : true |
| type | string | 編集権限
required Allowed values : READ, WRITE |
| userId | string | ユーザー ID (userId) required minLength : 1 readOnly : true |
| userType | string | ユーザータイプ
required Allowed values : USER, ORGUNIT, GROUP |
| userName | string | ユーザー名 required minLength : 1 readOnly : true |
example
1{2 "permissions": [3 {4 "permissionId": "QDIxMDAwMDAwMDAwMTcwfEdST1VQfDEwMTAwMDAwMDExNDY1MA",5 "type": "WRITE",6 "userId": "group127-8545-4463-603b-04d550d23bf",7 "userType": "GROUP",8 "userName": "グループ1"9 }10 ]11}