POST/boards/{boardId}/posts/{postId}/attachments
投稿に添付ファイルを登録する。
API を利用したコンテンツのアップロード方法については ファイルアップロード / ダウンロード を確認してください。
Access Token を指定します。
指定の方法や Access Token の取得方法は 共通仕様 を参照してください。
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