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.
I want to add attachments to a Confluence page via automated processes. I found documentation for the v1 API (https://confluence.atlassian.com/confkb/using-the-confluence-rest-api-to-upload-an-attachment-to-one-or-more-pages-1014274390.html)
But what is the way to go when using v2 APIs? In the documentation for v2 API (https://developer.atlassian.com/cloud/confluence/rest/v2/) I found a group of endpoints for attachments (https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-attachment/#api-group-attachment) but all of those are only GET. No PUT or POST.
Am I missing something?
The v1 API is still valid, as far as I know. This documentation includes the methods that should work for you:
https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content---attachments/#api-group-content---attachments
OK, so only GET /child/attachment is deprecated and v2 should be used (as marked on said docu page), but the other verbs / resources are still the way to go. I see.
I thought whole of v1 API is deprecated.
Thanks!
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.