我已成功将附件添加到confluence页面,但我无法更新该页面。我有管理员权限来创建页面并进行编辑。我不知道为什么它不起作用。下面是我用来更新汇总页面的命令。
curl -u username:password -X PUT -H 'Content-Type: application/json' -d'{"id":"pageid","type":"page","title":"LOAD-UI REPORTS","space":{"key":"TST"},"body":{"storage":{"value":"<p>This is the updated text for the loadui reports page</p>","representation":"storage"}},"version":{"number":2}}' https://jira.hilton.com/confluence/rest/api/content/pageid | python -mjson.tool
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
397 177 0 177 0 220 359 446 --:--:-- --:--:-- --:--:-- 0
{
"data": {
"authorized": false,
"errors": [],
"valid": true
},
"message": "Could not update Content of type : class com.atlassian.confluence.pages.Page with id 38012230",
"statusCode": 400
}
请让我知道我在这里做错了什么。