Error creating ticket with due_by in PHP
I am trying to create a ticket via PHP, however, it is returned an error when trying to create using passing the due_by field.
$ticket_data = json_encode(array(
"description" => "$description",
"subject" => "$subject / REF: #$id_ticket ",
"responder_id" => $agent_id,
"requester_id" => $solicitor_id,
"group_id" => $id_group,
"product_id" => $id_product,
"due_by" => "2017-12-12T23:20:50.52Z",
"source" => $source,
"priority" => 1,
"status" => 2,
"type" => $tipo,
"custom_fields" => $custom_fields
));
The error that returns when given the due_by field:
Error, HTTP Status Code : 400 Headers are HTTP/1.1 400 Bad Request Cache-Control: no-cache, no-store, max-age=0, must-revalidate Content-Type: application/json; charset=utf-8 Date: Wed, 16 Aug 2017 12:11:36 GMT Expires: Wed, 13 Oct 2010 00:00:00 UTC Pragma: no-cache Set-Cookie: _x_w=8; path=/; secure Status: 400 Bad Request X-Freshdesk-API-Version: latest=v2; requested=v2 X-Rack-Cache: in