The CreateTicketComment method is trying to load the response from Zendesk back into the TicketComment struct. However the response of the endpoint had a completely different structure which I'm sharing below.
This means that the returned struct is always a zero-value and doesn't contain the data of the newly created comment.
The data of the comment are in the struct under audit.events[0].
The CreateTicketComment method is trying to load the response from Zendesk back into the TicketComment struct. However the response of the endpoint had a completely different structure which I'm sharing below.
This means that the returned struct is always a zero-value and doesn't contain the data of the newly created comment.
The data of the comment are in the struct under
audit.events[0]
.