我成功地将附件添加到汇合页面,但我无法更新该页面。我确实拥有创建页面和编辑页面的管理员权限。我不知道为什么它不起作用。下面是我用来更新汇合页面的命令。
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
}
请让我知道我在这里做错了什么。