Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

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


   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,


1 answer

0 votes

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

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.

Like Jerry McDermott likes this


    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,


Suggest an answer

Log in or Sign up to answer