I am trying to transfer pdf files from google drive to a confluence, however I am not sure if is even possible, for now i am trying to transfer the viewing link as alternative. However, even updating the page with a web view link of the pdf or any another data for that matter does not seem to work as it get this error 400. Anyone knows why?
Until someone who knows more about Confluence API & Make replies, I can offer a porential debugging tip:
Find the Make DevTools chrome extension.
It lets you see the low level API call being made to confluence and the response. There might be clues in the response body.
Hi @Sam_Van_Leeuwen,
I see several topics on the Atlassion forum for related issues. Could you check if the pagename/document name already exists? And possibly if the PDF is encrypted (many converters don’t like this)
Other than that, this seems to be an Atlassian related error. I am afraid you’ll have to contact them to clear up this error.
PS I just see this, but what exactly are you passing as content? It seems to be a link instead of the actual file?
Cheers,
Henk
First off, downloading the PDF and updating a Confluence page won’t directly work. The reason being is that Confluence doesn’t have the means to convert the PDF contents to either ADF aka JSON rich text or Storage aka HTML/Markdown formats.
Given you can convert the PDF contents to text, then you create a Confluence or update an existing one.
For reference, while older, this discussion points to PDFs being attachments to pages than the content itself.