Alfresco API

PUT /nodes/{nodeId}/comments/{commentId}

基本信息

更新节点nodeId上的现有comments commentId

请求方式:PUT 

请求API: /nodes/{nodeId}/comments/{commentId}

响应等级(状态200)

成功回应

{
  "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.204Z",
      "userStatus": "string",
      "enabled": true,
      "emailNotificationsEnabled": true,
      "aspectNames": [
        "string"
      ],
      "properties": {},
      "capabilities": {}
    },
    "createdAt": "2021-01-08T08:52:11.204Z",
    "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.204Z",
      "userStatus": "string",
      "enabled": true,
      "emailNotificationsEnabled": true,
      "aspectNames": [
        "string"
      ],
      "properties": {},
      "capabilities": {}
    },
    "modifiedAt": "2021-01-08T08:52:11.204Z",
    "canEdit": true,
    "canDelete": true
  }
}

响应内容类型 applicaiton/json

Query参数

名称 类型 是否必填 示例值 描述
fields Array[string]   field名称的list。 例如,如果您想节省整体带宽,则可以使用此参数来限制响应中返回的field。
例如,如果您想节省整体带宽,则可以使用此参数来限制响应中返回的field。 该列表适用于返回的单个实体或集合中的条目。
如果API方法也支持include参数,则除了在fields参数中指定的fields外,还返回include参数中指定的fields。

Path参数

名称 类型 是否必填 示例值 描述
nodeId string   节点的标识符。
commentId string   comments的标识符。

Body参数(commentBodyUpdate

request body示例

{
  "content": "string"
}

错误信息描述

状态码 原因
400 无效的参数:commentBodyUpdate无效
401 验证失败
403 用户无权更新comments
404 nodeIdcommentId不存在
409 nodeId已锁定,您不是锁定所有者
default 意外错误

返回结果示例

{
  "error": {
    "errorKey": "string",
    "statusCode": 0,
    "briefSummary": "string",
    "stackTrace": "string",
    "descriptionURL": "string",
    "logId": "string"
  }
}