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.
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.