Hi all,
I try to create a note to an existing ticket with an attachment without success.
I try with the API example without issue :
curl -v -u APIKEY:X -F "attachments[]=@test.jpeg" -F "attachments[]=@test1.jpeg" -F "body=this is a sample ticket" -X POST 'https://DOMAIN.freshdesk.com/api/v2/tickets/40/notes'
But i want to try to add an attachment with Json, like :
curl -v -u APIKEY:X -H "Content-Type: application/json" -d '{"attachments" : {"0":"test.jpeg"}, "body": "this is a sample ticket"}' -X POST 'https://DOMAIN.freshdesk.com/api/v2/tickets/40/notes'
Result :
{"message":"We're sorry, but something went wrong."}
It's possible ?
Thank you in advance.
Regards,
Hugo