Why does the new ticket created via the API already have an audit array? | Community
Skip to main content

Why does the new ticket created via the API already have an audit array?

  • July 28, 2022
  • 1 reply
  • 0 views

Андрей12

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?

1 reply

Андрей12

I create cURL request to 

  • POST /api/v2/tickets