Forums

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

create a new page using Java

bahar pattarkine October 16, 2016

looking for sample code to create new confluence page 

please advice 

1 answer

0 votes
Nic Brough -Adaptavist-
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.
October 16, 2016

From an internal add-on, or via REST from the outside?

bahar pattarkine October 16, 2016
Nic Brough -Adaptavist-
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.
October 16, 2016
Marcel Woschek
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.
October 17, 2016
curl -v -u admin:admin -X POST -H 'Content-Type: application/json' 
-H 'Accept: application/json' -d'{"type":"page","title":"new page","space":
{"key":"ATTACH"},"body":{"storage":{"value":"<p>This is a new page</p>",
"representation":"storage"}}}' "http://localhost:8090/rest/api/content/
?os_authType=basic"

 

bahar pattarkine October 20, 2016

I am looking for Sample Java code 

, i found an example to update an existing page https://bitbucket.org/jaysee00/confluence-rest-api-example/src/99cee347f6630fe0937538fc3902dcf2e9cd5037/src/main/java/com/atlassian/api/examples/Main.java?at=master&fileviewer=file-view-default

 

 

i am looking for creating a new child page 

Jeet G April 5, 2017

Nic, what about from an internal add-on?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events