POST/boards/{boardId}/posts/{postId}/comments/{commentId}/attachments
This API operation adds up to 5 attachments.
Note
For how to upload content using the API, see Upload or Download Files.
OAuth 2.0 authentication.
For more information, see Authentication and Authorization.
board
| Parameter | Type | Description |
|---|---|---|
| boardId | integer | Board ID required example : 100 format : int64 |
| postId | integer | Post ID required example : 1 format : int64 |
| commentId | integer | Comment ID required example : 1 format : int64 |
| Header | type | Description |
|---|---|---|
| Authorization | string | Bearer {token} required |
| Property | Type | Description |
|---|---|---|
| fileName | string | Attachment file name required minLength : 1 maxLength : 200 |
| fileSize | integer | Attachment file size (in bytes) required minimum : 1 maximum : 2147483648 format : int64 |
| contentType | string | content-type required writeOnly : true |
example
1{2 "fileName": "ExampleFile.pdf",3 "fileSize": 10240000,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-556109220.294627924"3}Forbidden