Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Upload an attachment using rest api including macro enabled

Saquib Fraz
Contributor
June 22, 2020

Hi Everone,

I have a requirement like - I need to upload an attachment which is in Html format using rest API. Also, once the file is uploaded , it should be visible on the page like a "macro".

1. I'm able to upload the attachment using rest api but the problem I see is, there is no api to post a macro or edit it.

I got one solution here  - https://stackoverflow.com/questions/30194918/how-do-you-insert-a-confluence-macro-into-a-page-created-by-the-confluence-rest 
but was unable to understand this.

Not making it complex, but want the macro to be enabled while my Html file is uploaded. the whole process of uploading is automated.

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events