Not able to Create a new confluence page as a child of another page with below curl req:
curl -u admin:admin -X POST -H 'Content-Type:application/json' -d '{"type":"page","title":"new page",
"ancestors":[{"id":456}], "space":{"key":"TST"},"body":{"storage":{"value":
"<p>This is a new page</p>","representation":"storage"}}}'
https://wiki/rest/api/content/
OS: Windows
Error on using -o with curl:
curl: (7) Failed to connect to port 80: Connection refused
The error you're getting is a network error - it means there is nothing running on port 80 (http) on the url you are hitting, or a firewall is stopping the connection dead.
Check what the base url of the Confluence you are trying to connect to is, I suspect you will find it is not what you are using in curl (it will probably be https)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
But your curl call is over the default http port of 80. Have you set up 80 to serve up https? Or are you looking in the wrong place?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
curl -D- \
-u admin:admin \
-X POST \
-H "X-Atlassian-Token: nocheck" \
-F "file=@example.txt" \
-F "minorEdit=true" \
-F "comment=Example attachment comment" \
https://wiki/rest/api/content//123/child/attachment
But I am getting status 200 for the above curl request.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
A 200 is a success, now you're on the right url.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.