You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
Here is the command that I am using:
curl -v -S -X POST -H "Authorization: Bearer $WIKI_TK" -F "firstname.lastname@example.org" "https://company.com/confluence/rest/api/content/12345/child/attachment"
I am able to download pages, upload pages, download attachments, etc.
But getting stuck on uploading an attachment.
* We are completely uploaded and fine
< HTTP/1.1 302
< X-Confluence-Cluster-Node: asdfasdf
< Set-Cookie: JSESSIONID=fasdfasdfasd; Path=/; Secure; HttpOnly
< X-Seraph-LoginReason: OK
< X-AUSERNAME: asdfasdfasdf
< X-XSS-Protection: 1; mode=block
< X-Content-Type-Options: nosniff
< X-Frame-Options: SAMEORIGIN
< Content-Security-Policy: frame-ancestors 'self'
< Location: /login.action?os_destination=%2Fconfluence%2Frest%2Fapi%2Fcontent%asdfasdfasdf%2Fchild%2Fattachment&permissionViolation=true
< Content-Length: 0
Adding -H 'X-Atlassian-Token: nocheck' leads to same result (error code 302)
curl -v -S -X POST -H "Authorization: Bearer $WIKI_TK" -H 'X-Atlassian-Token: nocheck' -F "email@example.com" "https://company.com/confluence/rest/api/content/12345/child/attachment"