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
Well, the plain call is shown under create page at https://developer.atlassian.com/confdev/confluence-server-rest-api/confluence-rest-api-examples
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"
It looks like you're new here. Sign in or register to get started.