Mutation - 댓글 생성
폴더 / 파일에 대해 댓글을 생성한다.
Schema
Input Objects
KEY OBJECT DESC id ID 폴더 / 파일 아이디 fullPathString 폴더 / 파일 경로 (필수) contentsString 댓글 내용 (필수) adminPage Boolean 관리자 페이지 여부
Objects
OBJECT DESC FsEntityCommentDto 댓글 정보
Method
POST
{{url}}/graphql
Headers
KEY VALUE AuthorizationSecurity365 JWT 토큰
Body
QUERY
mutation createComment($id: ID, $fullPath: String!, $contents: String!, $adminPage: Boolean) {
createComment(id: $id, fullPath: $fullPath, contents: $contents, adminPage: $adminPage) {
id
indexDate
createdDate
modifiedDate
createdUserId
createdUserName
contents
contentsDisplay
targetUserIds
__typename
}
}
Sample
VARIABLES
{
"fullPath": "/folder/newSharePoint/1test.docx",
"contents": "댓글",
"adminPage": false
}RESPONSE
{
"data": {
"createComment": {
"id": "043589cbb32611ed990016ea3c3de916",
"indexDate": 1677121137910,
"createdDate": 1677121137910,
"modifiedDate": 1677121137910,
"createdUserId": "1342ce6d6aea11ed8a7ebea82d4a5658",
"createdUserName": "user1",
"contents": "댓글",
"contentsDisplay": "댓글",
"targetUserIds": [],
"__typename": "FsEntityCommentDto"
}
}
}