小编Edw*_*ard的帖子

您如何使用他们的REST API向Atlassian合流发布评论?

我正在尝试使用REST API将评论自动添加到页面中。

我正在使用邮递员进行测试,即时通讯指向以下网址:https://############.atlassian.net/wiki/rest/api/content/

使用有效的标题,并发布以下json:

{  
    "type":"comment",
    "container":"72025106",
    "body":{  
        "storage":{  
            "value":"auto comment 1",
            "representation":"storage"
        }
    }
}
Run Code Online (Sandbox Code Playgroud)

当我这样做时,我会得到此错误:

{
    "statusCode": 500,
    "message": "java.lang.IllegalStateException: Must provide id and type for Content"
}
Run Code Online (Sandbox Code Playgroud)

rest confluence confluence-rest-api

2
推荐指数
1
解决办法
864
查看次数

标签 统计

confluence ×1

confluence-rest-api ×1

rest ×1