How to create a new state ticket?

Hello everyone,
I want to create a new state like “closed”,
I’m using the API to add state for a ticket, and I got a good response from the system.
curl --insecure -u email:password -H "Content-Type:application/json" --data "{\"name\": \"False Positive\",\"state_type_id\": 6,\"next_state_id\": null,\"ignore_escalation\": true,\"active\": true,\"note\": null}" https://mysystem.com/api/v1/ticket_states

However, It’s doesn’t add to my Zammad system.
image

How can I see the new state “False Positive” ?

You might want to use the console to do so:
https://docs.zammad.org/en/latest/console/working-on-tickets.html

The main issue proberbly is that you can’t make the states available via API.

1 Like