I've seen a number of posts on this topic but they are not solving my problem. We have a corporate Jira account and I can view, create and edit confluence pages using Chrome browser and my company credentials.
I'm trying to do this same thing by using curl. I have checked and I believe Confluence Remote API is enabled. I have a fairly new version of Confluence so can use the modern form of browsing described in the docs.
I can browse the catalogs successfully using commands like (with personal account and password):
curl -D- -u user:pw-X GET -H "Content-Type: application/json" https://<company base confluence url>
I try to create the page with:
curl -u user:pw -X POST -H 'Content-Type:application/json' -d '{"type":"page","title":"testing_curl","ancestors":[{"id":1949495409}],"space":{"key":"OneMapDev"},"body":{"storage":{"value":"<p>This is a new page</p>","representation":"storage"}}}' <company confluence base url>/rest/api/content/
I'm confused about a few things:
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.