PUT/groups/{groupId}/note/posts/{postId}

組織/グループノートの投稿を更新する
Script は利用できない。

Authorization

oauth2

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

Scope

group.note

HTTP Request

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

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
title string 

件名


required
minLength : 1
maxLength : 200 
body string 

内容


required
minLength : 1
maxLength : 716800 
enableCollaboration boolean 

他のユーザーの編集許可


default : true 
sendNotifications boolean 

トークルームに通知を送信


default : true 
isNotice boolean 

ノートのお知らせに設定


default : false 

Request Example

example

1{2  "title": "WORKS 利用案内",3  "body": "<h1> WORKS 利用ガイド </h1>LINE WORKS のご利用に関して以下の通りご案内致します。",4  "enableCollaboration": true,5  "sendNotifications": true,6  "isNotice": false7}

Response

HTTP 200

OK

PropertyTypeDescription
schema object (schema) 
 

schema

PropertyTypeDescription
postId integer 

投稿 ID


format : int64 
title string 

件名


required
minLength : 1
maxLength : 200 
body string 

内容


required
minLength : 1
maxLength : 716800 
enableCollaboration boolean 

他のユーザーの編集許可

 
readCount integer 

既読数


format : int64 
commentCount integer 

コメント数


format : int64 
fileCount integer 

添付ファイル


format : int64 
likeCount integer 

いいねの数


format : int64 
createdTime string 

作成日時


required
format : date-time
readOnly : true 
modifiedTime string 

更新日時


format : date-time
readOnly : true 
userId string 

作成者のユーザー ID
退会済みユーザーの場合には NULL


readOnly : true
nullable : true 
userName string 

作成者の名前


required
readOnly : true 
isNotice boolean 

ノートのお知らせ

 

Response Example

example

1{2  "postId": 1,3  "title": "WORKS 利用案内",4  "body": "<h1> WORKS 利用ガイド </h1>LINE WORKS のご利用に関して以下の通りご案内致します。",5  "enableCollaboration": true,6  "readCount": 14,7  "commentCount": 2,8  "fileCount": 0,9  "likeCount": 1,10  "createdTime": "2019-08-24T14:15:22+09:00",11  "modifiedTime": "2019-08-24T14:15:22+09:00",12  "userId": "user7149-0ccd-433d-1eba-04f6901660dc",13  "userName": "Susan Nielsen",14  "isNotice": false15}