Create ticket with REST2 API with content


#1

Hello,

How is the rigt way to create ticket with content ?
This doesn’t work - It create ticket without content

curl -sXPOST --insecure -H ‘Authorization: token 1-12-177498612fe3021f…’ -H “Content-Type: application/json” --data-binary ‘{ “Queue”: “HwChange”, “Subject”: “Create ticket test1”,“From”: "radek.svoboda@upp.cz", “Content”: “bla bla bla”}’ ‘https://rt.xx.com/REST/2.0/ticket

Thanks
Radek


#2

We have a branch create-ticket-with-content to fix this issue, hopefully it’ll be included in the next release.
Sorry about the inconvenience.