Hi,
OSTicket version : v1.9.14
I'm trying to send a ticket with the JSON API.
Here's the data array I'm sending :
$data = array('name' => 'John Doe','email' => 'mailbox@host.com','phone' => '0123456789','subject' => 'Test API message','instrument' => 1,'plateforme' => 6,'message' => 'This is a test of the osTicket API','ip' => $_SERVER['REMOTE_ADDR'],'topicId' => '23','attachments' => array(),);
And the result is :
"Unable to create new ticket: validation errors: 34: Instrument is a required field 35: Platform is a required field err: Missing or invalid data - check the errors and try again"
"instrument" and "plateforme" are 2 required fields that I've placed in the "ticket details" form.
Each field has the "list" type, with a list i've created for that purpose.
Each field has the "list" type, with a list i've created for that purpose.
If I set both fields to "optional", then the ticket post works fine, but no value has been set for "instrument" and "plateforme" variables.
Is this a known issue, or am I doing something wrong ?
Thanks and best regards,
Vincent.