I’m trying to add a ticket with both an attachment and a custom field. Because of the attachment, I have to submit as multipart/form-data instead of json. But because of this, I’ve not been able to successfully submit the custom field.
What format for custom fields will work?
I’m using Guzzle and am trying to submit the data as follows:
I am using an external app that uses Guzzle to interact with the Freshdesk API to create a Ticket.
I successfully created a Ticket with no attachment and a custom field, submitting as json. I also successfully created a Reply with an attachment using multipart/form-data. But I cannot seem to create a Ticket with attachment AND custom field using multipart/form-data.
if my understanding is correct you were able to create a ticket without attachment and with custom fields, but when you try it with an attachment it fails? if that is the case kindly send us the payload and the file that you’re trying to attach, we’ll try it from our end!