Forums

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

Is there a way to create confluence page using curl command?

Kuldip Nijjar August 9, 2020

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.

1 answer

1 accepted

0 votes
Answer accepted
Pavel Potcheptsov
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 10, 2020

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.

 

francis vila July 7, 2022

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?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events