API Ticket Creation Failing

API Ticket Creation Failing

Hey there,

i'm currently building a tool to create tickets programmatically in PHP. The OAuth part is working fine, also requesting the orgId and refresh the token via refreshToken. So, the authorization should work.

When createing a ticket, i always get an
  1. {"message":"Error while processing your request"}

Even using just the basic requirements (...with correct IDs ;) )

  1.  curl -X POST https://desk.zoho.com/api/v1/tickets \
  2.   -H "orgId:XXXX" \
  3.   -H "Authorization:Zoho-oauthtoken 1000.XXXX.XXXX"\
  4.   -d '{
  5.   "contactId" : "XXXX",
  6.   "subject" : "Real Time analysis Requirement",
  7.   "departmentId" : "XXXX"
  8. }'
it's impossible to get it done or even get an error which helps finding the flaw

Sincerely,
Karnatz