Using the api function to create new ticket and getting system error 400 for two fields: due date and staff id. As mentioned in a previous question thread the due date still not working. The ticket is created with the appropriate staffID even though an error is generated. btw, I've tried using with staffID as a text and as a number. Here is the code:
$data = array(
'name' => 'new tickets',
'email' => 'xxxxxxxxxxxxxxxxx',
'staffId' => '8',
'topicId' => $svinptopicId,
// 'duedate' => $svinpduedate,
'duedate' => '12/08/2024',
'subject' => $svinpsubject,
'message' => $svinpmessage,
'companyid' => $svinpcompanyid,
'ip' => $_SERVER['REMOTE_ADDR'],
'attachments' => array(),
);
Server Information
osTicket Version v1.18.1 (0375576) — Up to date
Web Server Software Apache
MySQL Version 8.0.37
PHP Version 8.1.29
PHP Extensions
gdlib Used for image manipulation and PDF printing
imap Used for email fetching
xml XML API
xml-dom Used for HTML email processing
json Improves performance creating and processing JSON
mbstring Highly recommended for non western european language content
phar Highly recommended for plugins and language packs
intl Highly recommended for non western european language content
fileinfo Used to detect file types for uploads
zip Used for ticket and task exporting
APCu Improves overall performance
Zend Opcache Improves overall performance