Last updated: 2019-09-17
You can use the following curl command :
curl -v -u user@yourcompany.com:test -F "helpdesk\_ticket\[attachments\]\[\]\[resource\]=@/path/to/attachment1.ext" -F "helpdesk\_ticket\[attachments\]\[\]\[resource\]=@/path/to/attachment2.ext" -F "helpdesk\_ticket\[email\]=example@example.com" -F "helpdesk\_ticket\[subject\]=Ticket Title" -F "helpdesk\_ticket\[description\]=this is a sample ticket" -X POST https://domain.freshservice.com/helpdesk/tickets.json
For more information, please click: https://api.freshservice.com/#create\_ticket\_with\_attachment