You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
Hello,
I am trying to UPDATE an existing Confluence wiki page via REST and I am getting an error saying "nested branch in URL position 53. Error appears to be located in the "storage" data in the "body" section of the JSON . The JSON format appears correct, so I am not sure if my fields in JSO are incorrect or what the issue might be.
My command line looks like the following:
curl -u id:pw -X PUT -H 'Content-Type:application/json' -d '{"id":"39","type":"page", "title":"Test Page","space":{"key":"Test Space"},"body":{"storage":{"value":"<p>updated text</p>","representation":"storage"}},"version":{"number":2}}'
If any has any ideas that might help, it would be appreciated.
Thank you,
Jerry
One possible problem could be at this point:
"space":{"key":"Test Space"},
The Key for a Space does not contain spaces and is not the same as the Name for the space.
When creating a Space the Key is automatically generated and is generally the first letter of each word in the Space Name. This can be overridden manually during Space creation.
But you would not be able to override it with text that included a blank space.
And, just for future reference, note that you posted your question in a Jira community. You might have better luck getting answers to your Confluence questions if you post them in the Confluence community.
https://community.atlassian.com/t5/Confluence/ct-p/confluence
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Trudy,
Thank you very much for your response! This is very helpful information. I see what you mean by the spaces being invalid. I have address that, as I would need to in any event. I am still seeing the nested error, just at a different index since the JSO got smaller. Still seems to be an issue at the data:storage.
Thank you for the tip on where to post. This was my first post to atlassian and I just didn't notice this was the jira section. I will add this post to the wiki side as well.
Thank you, so much, for your help! Very much appreciated.
Thank you,
Jerry
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.