4

合流ページに添付ファイルを正常に追加しましたが、そのページを更新できません。ページを作成して編集するための管理者権限があります。なぜ機能しないのかわかりません。以下は、合流点でページを更新するために使用したコマンドです。

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
}

ここで私が間違っていることを教えてください。

4

0 に答える 0