Is there a way to create confluence page using curl command? I want to create a page to contain csv data? The csv data is in csv file. I have existing parent page I want (a new) child page to contain csv data.
Hi there.
Yes, there is a way by using REST API which is provided by Confluence and there are plenty of examples in the existing documentation.
The look of final code depends how you want to use it. Once or repeat many times for different spaces and different parent pages.
For one time execution you have to know
- URL of your server,
- login/password of user with create page permission,
- space key,
- parent page ID,
Then you have to construct POST request by using method which creates child page under ancestor (parent) page in the given space.
For repetitive usage you have to automate the process of getting info about desired spaces and parent pages.
Hi @Pavel Potcheptsov ,
Yes, there is a way by using REST API which is provided by Confluence and there are plenty of examples in the existing documentation.
I'm searching in the Atlassian documentation for info about posting pages to a Confluence server ...
For the moment, I've found this: https://docs.atlassian.com/atlassian-confluence/REST/5.7.1/#d3e717 . It doesn't say much in the POST section, and no examples are provided. There are a couple of expand/collapse sections, but they are empty. Maybe you could provide a link?
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.