Question about API using

  • 31 August 2018
  • 1 reply
  • 54 views

Hello ! I try to create note with attachments. I send request to "api/v2/tickets/'.$ticket_id.'/notes" through "POST" method similar as in sample for tickets:

https://github.com/freshdesk/fresh-samples/blob/master/PHP/create_ticket_with_multiple_attachments.php  


 But I get the error "Content-Type header is set to multipart/form-data. It should be set to application/json"


So how can I create note with multiple attachments ? Unfortunately I didn't find appropriate example in samples.


Also I have  same problem with updating tickets -  it's possible to update ticket just without attachments through "PUT" method.





This topic has been closed for comments

1 reply

Hi Dmitry,


Please reach out to Freshdesk forums for Freshdesk API related queries. 


Thanks,

Janani V.