The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events