Ticket and rest api

Hi,
I’m using dolibarr V17.0.1. I have some problems with rest api: when I try to create a new ticket (with rest api) the response body is no content and the responde code is 500.

Any suggestion or workaround?

Thanks!

try this ;
curl -X POST --header ‘Content-Type: application/json’ --header ‘Accept: application/json’ --header ‘DOLAPIKEY: DOLAPIKAY’ -d ‘{ \
“message”: “Hey”,
“subject”: “TEST”,
“type_code”: “COM”,
“category_code”: “OTHER”,
“severity_code”: “LOW”,
}’ ‘https://yourDomainName/api/index.php/tickets