Hi,
I want to use an external service to be able to upload a file to a specific field in a confiforms form that I have. Afaik Confiforms REST API Version 0 has an endpoint to do this but not through an external service as it is not capable of authorization. While Version 1 on the other hand does not support an endpoint to upload a file. What would my best route be in this case to achieve this?
Any help would be much appreciated. Thanks
Hello @Ryan Kafoor ,
As you specified the Server/Data Center version of Confluence, you should use the https://docs.atlassian.com/ConfluenceServer/rest/8.9.0/#api/content/{id}/child/attachment-createAttachments REST API (for your Confluence version).
E.g.:
curl -D- -u admin:admin -X POST -H "X-Atlassian-Token: nocheck" -F "file=@myfile.txt" -F "comment=This is my File" http://myhost/rest/api/content/123/child/attachment
So you add the child item to the necessary page as an attachment.
Hi, if it was not clear enough before, I was referring to APIs for conffiforms to be able to upload to a file to a confiform field
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.