我正在尝试使用 REST API 自动向页面添加评论。
我正在使用 Postman 进行测试,我指向这个网址:https://##########.atlassian.net/wiki/rest/api/content/ https://###########.atlassian.net/wiki/rest/api/content/
使用有效的标头,并发布此 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"
}
}
}
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)