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
I am trying to access the HTML content of a Confluence page using this API: https://xxxx.atlassian.net/wiki/rest/api/content/{pageId}?expand=body.view However, I get an error message like this:
I can see the content if I visit the link directly. But when I use the API, it says I don’t have permission. I think this is because the Confluence page uses the Page Tree macro. How can I grant permission for the API to access the Page Tree macro?
Hi @Alex Guo and welcome,
rest API have not specific permissions and they should follow the caller user permission. It is weird that you can access page via browser and you have error using apis.
Please verify that user used for rest API is the same that you are using to access page via browser.
Fabio
Hi, thank you for your answer. I'm sure that the user I used for rest API is the same as that I used in browser
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.