Hello,
I am trying to include a curl script in gitlab yaml. I am currently working on the instruction on my own bash for now but I can't seem to make it work, though I could work using postman.
The API I would like to call is to "create/update an attachment" using the following curl :
curl -D- -u username:password -X POST -H "X-Atlassian-Token: nocheck" -F "file=@C:/directory/file.txt" "htttp:/confluence.mycompany.net/rest/api/content/12345/child/attachment"
And I have an error response "500 internal server error".
Could you help me please ? Thanks in advance.
Hello David,
Welcome to Atlassian Community. It's nice to meet you.
Your example is using htttp instead of http; this just a typo here or is it in your request as well? That might be causing the internal server error.
Let me know if that helps!
Regards,
Shannon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.