跳到主要内容

Notify the coediting status (可选API)

MethodAPI描述
POST/{context}/{docId}/notify通知文档编辑状态变化

功能说明:
当文档从没有人编辑到有人编辑,或者从有人编辑到所有人都退出编辑时通知状态变化。

例子:

POST http://172.16.52.223/v2/context/484/notify
{
"docId": "484",
"type": "edit.session.close",
"repoId": "thirdparty-rest"
}

type值说明:

  • edit.session.open:第一个用户打开文档
  • edit.session.close:最后一个用户关闭文档