When I run requests against this endpoint:
"https://your-domain.atlassian.net/wiki/rest/api/content/{id}/child/attachment"
I get various errors (403 for PUT and 500 for POST).
Can we have a working example for using this endpoint to upload a file to a confluence page please. E.g Upload `example.txt`.
Ideally Python but cURL should be fine either.
I am able to run get requests against the same endpoint and successfully return attachments, so I don't think there's an issue with my API key or permissions.
For context, I created the page and am able to edit it through my browser.