您如何使用他们的RESTAPI向Atlassian confluence发布评论?

您如何使用他们的RESTAPI向Atlassian confluence发布评论?,rest,confluence,confluence-rest-api,Rest,Confluence,Confluence Rest Api,我正在尝试使用RESTAPI自动向confluence中的页面添加注释 我正在使用Postman进行测试,我指向以下url: 使用有效的标题并发布此json: { "type":"comment", "container":"72025106", "body":{ "storage":{ "value":"auto comment 1", "representation":"storage"

我正在尝试使用RESTAPI自动向confluence中的页面添加注释

我正在使用Postman进行测试,我指向以下url:

使用有效的标题并发布此json:

{  
    "type":"comment",
    "container":"72025106",
    "body":{  
        "storage":{  
            "value":"auto comment 1",
            "representation":"storage"
        }
    }
}
当我返回此错误时:

{
    "statusCode": 500,
    "message": "java.lang.IllegalStateException: Must provide id and type for Content"
}
这应该起作用:

{"type":"comment",
   "container":{
       "id":"[PARENT_ID]",
       "type":"page",
       "status":"current"
   },
   "body":{
      "storage":{
         "value":"[COMMENT_BODY]",
         "representation":"storage"
      }
   }
}

这个json实际上对我有效,confluence REST文档是错误的!