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

組織/グループノートの投稿に添付ファイルを登録する。

Authorization

oauth2

Access Token を指定します。
指定の方法や Access Token の取得方法は 共通仕様 を参照してください。

Scope

group.note

HTTP Request

POSThttps://www.worksapis.com/v1.0/groups/{groupId}/note/posts/{postId}/attachments

Path Parameters

ParameterTypeDescription
groupId string 

組織/グループ ID


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

投稿 ID


required
format : int64 

Header Parameters

HeadertypeDescription
Authorization string 

Bearer {token}


required 
Content-Type string 

application/json


required
example : application/json 

Request Body

PropertyTypeDescription
fileName string 

添付ファイル名


required
minLength : 1
maxLength : 200 
fileSize integer 

添付ファイルのサイズ (Bytes)


required
minimum : 1
format : int64 
contentType string 

content-type


required
writeOnly : true 

Request Example

example

1{2  "fileName": "worksGuide.pdf",3  "fileSize": 1024,4  "contentType": "application/pdf"5}

Response

HTTP 200

OK

PropertyTypeDescription
uploadUrl string 

添付ファイルのアップロード URL


required
format : uri 

Response Example

example

1{2  "uploadUrl": "https://apis-storage.worksmobile.com/v1/openapi/home/files/v2-10107670-12345.12345"3}

HTTP 403

File Count Over