i need to create a confluence page from python script and should be able to edit from the same python script if needed.
curl -i -X POST \
-H "Authorization:Basic <my-api-token>" \
-H "Content-Type:application/json" \
-H "X-Atlassian-Token:no-check" \
"https://gskr.atlassian.net/wiki/rest/api/content/" \
-d '{
"space" " {"key": "FIR" },
"type": "page",
"title": "Page Created from shell script",
"body": {
"storage": {
"value": "This is my page Content generated from shell script",
"representation": "wiki"
}
}
}'
i used the above shell script but i got authentication error.