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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Getting error saying "nested branch in url" when updating confluence page

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

1 answer

0 votes
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Sep 07, 2022

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.

Screen Shot 2022-09-07 at 4.48.10 PM.png

But you would not be able to override it with text that included a blank space.

Screen Shot 2022-09-07 at 4.49.46 PM.png

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Sep 07, 2022

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

Like Jerry McDermott likes this

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

Suggest an answer

Log in or Sign up to answer