I've been attempting to update a ticket on Zendesk using their API and adding multiple comments. However, it seems that I might be utilizing the incorrect format as the comments are not showing up on my Zendesk dashboard...
The JSON format I'm currently using is:
{
"ticket" : {
"external_id": externalID,
"created_at": incomingTicket.startDate,
"updated_at": incomingTicket.lastModificationDate,
"type": lType,
"subject": incomingTicket.topic,
"description": incomingTicket.description,
"priority": lPriority,
"status": lStatus,
"comments": [{"id": 3456, "body": "First comment Fix"}, {"id": 3457, "body": "Second Command Fix"}],
"due_at": incomingTicket.endDate,
"tags": [incomingTicket.label]
}
};
Could someone please point out where I might be going wrong?
Thank you very much in advance!