Infos:
- Used Zammad version: 4.1.x
- Used Zammad installation type: docker-compose
- Operating system: Linux
- Browser + version: Chrome 98.0.4758.81
When trying to create an SLA via the API, the “condition” part of the request is being ignored
This is the request that is being sent (the condition part is the same as the one in the documentation):
payload = {
"name": "name",
"first_response_time": "240"
"condition": {
"ticket.state_id": {
"operator": "is",
"value": "2"
}
},
"calendar_id": "1"
}
This is the response body I get:
{"id":10,"calendar_id":1,"name":"name","first_response_time":240,"update_time":null,"solution_time":null,"condition":{},"updated_by_id":10,"created_by_id":10,"created_at":"2022-02-08T20:07:40.456Z","updated_at":"2022-02-08T20:07:40.456Z"}
Note the empty condition in the response. What is the correct format?
I’d like to add condition ticket.tags contains one name, but I’m not sure how to format the request.
Is there documentation for this somewhere? I was unable to find it.
On a related note, is it possible to control (mainly create) triggers via the API?