I noticed that new tickets, created through the API, initiated by clients, are immediately marked as “updated by the agent”.
Searching for the reason, I found out that for some reason when creating a new ticket, I get a response from the server, which already has an AUDIT array, which contains many events. It looks like the creation of a ticket takes place in stages - at first, an empty Ticket is simply created, and then it is filled with data. As a result, in the system, the new ticket looks like it was updated by the agent.
In this AUDIT array field "author_id" contains value as an agent, but the ticket was created on behalf of a client. And that creates a problem.
How to create tickets via API without audit data?