POST/groups/{groupId}/note/posts/{postId}/attachments
Adds an attachment to a post.
OAuth 2.0 authentication.
For more information, see Authentication and Authorization.
group.note
| Parameter | Type | Description |
|---|---|---|
| groupId | string | Team/group ID required example : group127-8545-4463-603b-04d550d23bf |
| postId | integer | Post ID required format : int64 |
| Header | type | Description |
|---|---|---|
| Authorization | string | Bearer {token} required |
| Content-Type | string | application/json required example : application/json |
| Property | Type | Description |
|---|---|---|
| fileName | string | Attachment file name required minLength : 1 maxLength : 200 |
| fileSize | integer | Attachment file size (in bytes) required minimum : 1 format : int64 |
| contentType | string | content-type required writeOnly : true |
example
1{2 "fileName": "worksGuide.pdf",3 "fileSize": 1024,4 "contentType": "application/pdf"5}OK
| Property | Type | Description |
|---|---|---|
| uploadUrl | string | Attachment upload URL required format : uri |
example
1{2 "uploadUrl": "https://apis-storage.worksmobile.com/v1/openapi/home/files/v2-10107670-12345.12345"3}File Count Over