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

This API operation cannot get inline images or videos.

Authorization

oauth2

OAuth 2.0 authentication.
For more information, see Authentication and Authorization.

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 

Team/group ID


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

Post ID


required
format : int64 

Query Parameters

ParameterTypeDescription
cursor string 

Cursor value for pagination


example : sfJogXpzDGY8OscZziqZpYqCAu3RbZbaFzBb1od6lWQtSdPUd2FIdCuaGgu8DA== 
count integer 

Number of items in a list


default : 20
minimum : 1
maximum : 20 

Header Parameters

HeadertypeDescription
Authorization string 

Bearer {token}


required 

Response

HTTP 200

OK

PropertyTypeDescription
attachments array (object) 

List of attachments

 
responseMetaData object (responseMetaData) 

Metadata for pagination

 

object

PropertyTypeDescription
attachmentId string 

File ID


required
readOnly : true 
fileName string 

File name


required 
fileSize integer 

File size (in bytes)


required
format : int64 
createdTime string 

Creation date


required
format : date-time
readOnly : true 

responseMetaData

PropertyTypeDescription
nextCursor string 

Cursor value for pagination

 

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}