looking for sample code to create new confluence page
please advice
From an internal add-on, or via REST from the outside?
REST Java , 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 an example /sample code to create a new page
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well, the plain call is shown under create page at https://developer.atlassian.com/confdev/confluence-server-rest-api/confluence-rest-api-examples
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Still thinking about joining us for Team '25 Europe? Early bird has been extended for just one week! Now’s the time to lock in your lowest rate. Use code TEU25COMM-20 to save 20% at checkout. Hurry, this only lasts for 1 more week.
Learn more
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.