GET/groups/{groupId}/note/posts/{postId}/attachments

組織/グループノートの投稿の添付ファイルのリストを取得する。

Authorization

oauth2

Access Token を指定します。
指定の方法や Access Token の取得方法は 共通仕様 を参照してください。

Scope

group.note
group.note.read

HTTP Request

GEThttps://www.worksapis.com/v1.0/groups/{groupId}/note/posts/{postId}/attachments

Path Parameters

ParameterTypeDescription
groupId string 

組織/グループ ID


required
example : group127-8545-4463-603b-04d550d23bf 
postId integer 

投稿 ID


required
format : int64 

Query Parameters

ParameterTypeDescription
cursor string 

リストのカーソル値 (URL エンコードする)


example : sfJogXpzDGY8OscZziqZpYqCAu3RbZbaFzBb1od6lWQtSdPUd2FIdCuaGgu8DA== 
count integer 

取得数


default : 20
minimum : 1
maximum : 20 

Header Parameters

HeadertypeDescription
Authorization string 

Bearer {token}


required 

Response

HTTP 200

OK

PropertyTypeDescription
attachments array (object) 

添付ファイルリスト

 
responseMetaData object (responseMetaData) 

レスポンスのメタデータ

 

object

PropertyTypeDescription
attachmentId string 

ファイル ID


required
readOnly : true 
fileName string 

添付ファイル名


required 
fileSize integer 

添付ファイルのサイズ (Bytes)


required
format : int64 
createdTime string 

作成時刻


required
format : date-time
readOnly : true 

responseMetaData

PropertyTypeDescription
nextCursor string 

次のリスト取得時に使用するカーソル値

 

Response Example

example

1{2  "posts": [3    {4      "attachmentId": "jp1.1.2.1000000000000000001.0.100000000004",5      "fileName": "README.txt",6      "fileSize": 11928,7      "createdTime": "2021-11-03T21:50:00+09:00"8    }9  ],10  "responseMetaData": {11    "nextCursor": "sfJogXpzDGY8OscZziqZpYqCAu3RbZbaFzBb1od6lWQtSdPUd2FIdCuaGgu8DA=="12  }13}