Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Unable to update the confluence page, it gives internal server error

Hi,

I am using the below command to update the existing confulence page from widdows.

curl -u userID:"PASSKEY" -X PUT -H "Content-Type:application/json" -d '{"id":"135769759","type":"page", "title":"Configuration Management Plan","space":{"key":"THEPAGE"},"body":{"storage":{"value": "<p>This is the updated text for the CMP page</p>","representation":"storage"}}' https://confluence.sw.mycompany.com/rest/api/content/135769759 | python -mjson.tool

But when i run the above command i get the following error:

curl: (3) [globbing] nested brace in column 68
curl: (3) [globbing] unmatched close brace/bracket in column 72
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 89 0 64 100 25 61 23 0:00:01 0:00:01 --:--:-- 61
{
"statusCode": 500,
"message": "",
"reason": "Internal Server Error"
}

Please help me to resolve this.

I have followed the example provided here ("Update a Page")

https://developer.atlassian.com/server/confluence/confluence-rest-api-examples/.

 

However when i extract the content of the above page, with the below mentioned command, it returns me the JSON data perfectly. So i assume the reference to page and the object parameters are correct.

curl -u user:"PASSKEY" https://confluence.sw.mycompany.com/rest/api/content/135769759?expand=body.storage | python -m json.tool

 

 

1 answer

Hi, i was able to resolve the curl related errors .ie.

curl: (3) [globbing] nested brace in column 68
curl: (3) [globbing] unmatched close brace/bracket in column 72

However, i am still getting Internal Server Error as shown below:

 

curl -u USER:"PASSKEY" -X PUT -H "Content-Type:application/json" -d '{"id":"135769759","type":"page","title":"Configuration Management Plan","space":{"key":"THEPAGE"},"body":{"storage":{"value":"<p>This is the updated text for the CMP page</p>","representation":"storage"}}' https://confluence.sw.mycompany.com/rest/api/content/135769759 | python -mjson.tool


% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 238 0 64 100 174 64 174 0:00:01 0:00:01 --:--:-- 217
{
"statusCode": 500,
"message": "",
"reason": "Internal Server Error"

Please check and help. 

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence

Announcing Team Calendars in Confluence Data Center

Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond.  A long time favorite,  Team Cale...

26 views 0 2
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you