This question is related to this one:
Long story short, I am using a web request to Get Pages from Confluence API with &body-format=storage.
I save the following {{webResponse.body.results.body.storage.value.replace("\"","\\\"")}} as {{content}}.
I then use Update Page from Confluence API with a payload where each attribute is the same and
"body": { "representation": "storage", "value": "{{content}}" }
I get 400 invalid_message and am confused about why. Looking at others' questions, they do not have any issue just using the webresponse value and don't even have to use replace("\"","\\\""). Why can I not just use {{webResponse.body.results.body.storage.value}} as "value"?
It was again a case of unescaped characters, \ in particular. My question is still why I have to escape these instead of just being able to utilize the value.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.