POST/boards/{boardId}/posts/{postId}/attachments
게시글의 첨부 파일을 추가한다.
참고
API를 이용한 콘텐츠 업로드 방법은 파일 업로드/다운로드를 참고한다.
OAuth 2.0 인증.
자세한 인증 방식은 인가·인증를 참고한다.
board
| Parameter | Type | Description |
|---|---|---|
| boardId | integer | 게시판 ID required example : 100 format : int64 |
| postId | integer | 게시글 ID required example : 1 format : int64 |
| Header | type | Description |
|---|---|---|
| Authorization | string | Bearer {token} required |
| Property | Type | Description |
|---|---|---|
| fileName | string | 첨부 파일 명 required minLength : 1 maxLength : 200 |
| fileSize | integer | 첨부 파일 크기 (단위: 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 | 첨부파일 업로드 URL required format : uri |
example
1{2 "uploadUrl": "https://apis-storage.worksmobile.com/v1/openapi/home/files/v2-10107670-556109220.294627924"3}Forbidden