我正在尝试使用REST API更新融合页面,但出现此错误:无法还原ID为ContentId {id = 194636103}的内容
{
"statusCode": 403,
"data": {
"authorized": false,
"valid": false,
"errors": [
{
"message": {
"key": "content.trash.restore.notpermitted",
"args": [
"AOS"
]
}
}
],
"successful": false
},
"message": "Unable to restore content with id: ContentId{id=194636103}"
}
这是我的代码和json文件:
curl -b ${myCookies} -X PUT -H 'Content-Type: application/json' https://myConfluenceAdress.com/rest/api/content/194636103 --data @<(cat ${jsonFile})
还有jsonFile:
{
"id":"194636103",
"type":"page",
"title":"new title test",
"body":{
"storage":{
"value":"<p>This is the updated text for the new page</p>",
"representation":"storage"
}
},
"version":{"number":4}
}