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
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hi,
i am trying to create a page in confluence using rest api but i am greeted with this error: {"statusCode":500,"message":"","reason":"Internal Server Error"}.
my code:
curl.exe -X POST -H "Authorization: Bearer PersonalAccessToken" -H "Content-Type: application/json" -d '{"type":"page","title":"new page","space":{"key":"TES"},"body":{"storage":{"value":"This is a new page","representation":"storage"}}}' https://myconfluenceurl.com/confluence/rest/api/content
i have checked the logs and found this aswell:
org.codehaus.jackson.JsonParseException: Unexpected character ('t' (code 116)): was expecting double-quote to start field name
im not sure where the mistake is, i cant see it.
i appreciate every help!
Best Regards
Nauman
Did you try using double quotes (") after -d instead of single quotes (')?
Thanks,
Vamsi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hmmm...looks like there is an issue with JSON data format. I have tested the JSON data you are sending and it is parsing fine as well as your curl call looks good to me.
Did you try using third-party tool like Postman and check?
Thanks,
Vamsi
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.