Automatically created tickets

  • Used Zammad version: 4.0.0-1619855763
  • Used Zammad installation type: rpm
  • Operating system: centos 8
  • Browser + version: firefox 87.0

Hello,

I would like to create job tickets via cron that can be edited as if the customer had created them via email.
Command:
curl -u xxx@xxx.de:XXX -H “Content-Type: application/json” -X POST -d ‘{“title”:“Updates installieren !!”,“group”: “Users”,“article”:{“subject”:“Monatliche Updates installieren …”,“body”:“Monatliche Updates auf den Windows-Systemen installieren …”,“type”:“email”,“internal”:false},“customer":"xxx@xxx.de”}’ https://xxx.xxx.de/api/v1/tickets

Ticket is created and generates the following error message:
Can’t use Channel::Driver::Smtp: #<ArgumentError: SMTP To address may not be blank: []>

If I want to answer the ticket, the email field is empty.
Everything works fine via email …

If I use “note” in the “type” command, there are no errors, but then the exchange with the customer is missing …

Please help, thank you very much …

Aren’t you missing the “to” argument?

I haven’t found anything about it anywhere, what should it look like?

Thanks

If you mean the “to” argument in the Zammad gui, I can fill it in manually.
The error message appears the first time the system answers automatically …
Can I somehow pass the “to” in the command line?

Many Thanks …