Skip to main content

Send comments API (Optional API)

MethodAPIDescription
POST/{context}/{docId}/mentionNotify comment operations

Function Description:
Notify the business system when someone adds or modifies comments to a document.

Example:

POST http://172.16.52.223/v2/context/484/mention
{
"type": "create", // "create" or "reply"
"author": "26", // User ID who created/replied to the comment
"owner": "26", // User ID who created the comment
"commentsid": "d1b5015f-a02a-4c93-825a-a7c7cec593f9", // Comment ID
"link": "http://172.16.52.158/docs/app/doc/external.rest/1387317875592663128/edit/content",
"content": "请大家仔细阅读并讨论这段内容 @李明,@王阳",
"fileid": "1387317875592663128",
"filename": "测试word.docx",
"mentionList": ["27", "28"] // User IDs of mentioned people
}

Response Requirements:
Normally returns 200 status code