管控,安全 流程,规则
POST /nodes/{nodeId}/comments
在节点nodeId上创建comments。 您可以在JSON正文中指定comments,如下所示:
{ "content": "This is a comment" }
Note: 您可以通过在JSON正文中指定comments列表来创建多个comments,如下所示:
[ { "content": "This is a comment" }, { "content": "This is another comment" } ]
如果将列表指定为输入,则在响应正文中返回分页列表,而不是条目。 例如:
{ "list": { "pagination": { "count": 2, "hasMoreItems": false, "totalItems": 2, "skipCount": 0, "maxItems": 100 }, "entries": [ { "entry": { ... } }, { "entry": { ... } } ] } }
请求方式:POST
请求API:/nodes/{nodeId}/comments
成功回应
{ "entry": { "id": "string", "title": "string", "content": "string", "createdBy": { "id": "string", "firstName": "string", "lastName": "string", "description": "string", "avatarId": "string", "email": "string", "skypeId": "string", "googleId": "string", "instantMessageId": "string", "jobTitle": "string", "location": "string", "company": { "organization": "string", "address1": "string", "address2": "string", "address3": "string", "postcode": "string", "telephone": "string", "fax": "string", "email": "string" }, "mobile": "string", "telephone": "string", "statusUpdatedAt": "2021-01-08T08:52:11.192Z", "userStatus": "string", "enabled": true, "emailNotificationsEnabled": true, "aspectNames": [ "string" ], "properties": {}, "capabilities": {} }, "createdAt": "2021-01-08T08:52:11.192Z", "edited": true, "modifiedBy": { "id": "string", "firstName": "string", "lastName": "string", "description": "string", "avatarId": "string", "email": "string", "skypeId": "string", "googleId": "string", "instantMessageId": "string", "jobTitle": "string", "location": "string", "company": { "organization": "string", "address1": "string", "address2": "string", "address3": "string", "postcode": "string", "telephone": "string", "fax": "string", "email": "string" }, "mobile": "string", "telephone": "string", "statusUpdatedAt": "2021-01-08T08:52:11.192Z", "userStatus": "string", "enabled": true, "emailNotificationsEnabled": true, "aspectNames": [ "string" ], "properties": {}, "capabilities": {} }, "modifiedAt": "2021-01-08T08:52:11.192Z", "canEdit": true, "canDelete": true } }
响应内容类型 applicaiton/json
request body示例
{ "content": "string" }
返回结果示例
{ "error": { "errorKey": "string", "statusCode": 0, "briefSummary": "string", "stackTrace": "string", "descriptionURL": "string", "logId": "string" } }
Alfresco API
POST /nodes/{nodeId}/comments
基本信息
在节点nodeId上创建comments。 您可以在JSON正文中指定comments,如下所示:
Note: 您可以通过在JSON正文中指定comments列表来创建多个comments,如下所示:
如果将列表指定为输入,则在响应正文中返回分页列表,而不是条目。 例如:
请求方式:POST
请求API:/nodes/{nodeId}/comments
响应等级(状态201)
成功回应
响应内容类型 applicaiton/json
Query参数
例如,如果您想节省整体带宽,则可以使用此参数来限制响应中返回的field。 该列表适用于返回的单个实体或集合中的条目。
如果API方法也支持include参数,则除了在fields参数中指定的fields外,还返回include参数中指定的fields。
Path参数
Body参数(commentBodyCreate)
request body示例
错误信息描述
返回结果示例