Hi,
we tried to create a ticket using API V2. As close as possible to the cull expessions provided by the tutorial. While running the curl expression under Linux all work fine, but not with Windows.
Expression:
curl -v -u *APIKEY*:X -F 'attachments[]=@/home/user/xxx.txt' -F 'subject=API Test' -F 'description=Attachement Test' -F 'email=mail@someISP.com' -F 'priority=1' -F 'status=2' -X POST 'https://XXX.freshservice.com/api/v2/tickets'
Error:
{"description":"Validation failed","errors":[{"field":"attachments","message":"It should be of type valid file format","code":"datatype_mismatch","nested_field":"attachments.[0]"}]}* Connection #0 to host XXX.freshservice.com left intact
We donât understand why,
Â