Is there more API values available then the User profile? I would also like the Organization profile.Also, is there a way to add Organization to the top of the Ticket Detail Form? Next to the User Information Fields.I know it can be added by the Help Topic, but this is not what I want. I do not understand why Company/Organization  info needs to be separated so much.$data = array(    'name'      =>      'John Doe',  // from name aka User/Client Name    'email'     =>      'john@gmail.com',  // from email aka User/Client Email 'phone' => '1234567890',  // phone number aka User/Client Phone Number    'subject'   =>      'Test API message',  // test subject, aka Issue Summary    'message'   =>      'This is a test of the osTicket API',  // test ticket body, aka Issue Details.    'ip'        =>      $_SERVER, // Should be IP address of the machine thats trying to open the ticket. 'topicId'   =>      '1'; // the help Topic that you want to use for the ticket  //'Agency'  => '58', //this is an example of a custom list entry. This should be the number of the entry. //'Site' => 'Bermuda'; // this is an example of a custom text field.  You can push anything into here you want.     'attachments' => array()

This does not appear to be a Suggestion or Feedback, moving thread to General Discussion.Please see:https://github.com/osTicket/osTicket/blob/55dc25ace736baeaf224ee608cfabc0218022036/setup/doc/api.md

4 days later

Im on v1.10.I understand now that any Newly Added Fields in Contacts will be added to "user__cdata__xxxx" table.To view a new column field will require customizing tickets.inc.php for the Tickets TabI do not know how correct this is, but it seems to work. 3 steps.For example, to add a Company field I did the following: in tickets.inc.phpAdd a new sort/column routine:around line76        'Company' => array(            'width' => '8.4%',            'heading' => __('Company'),            'sort_col'  => 'user__cdata__company',            ),around line382add the company value to array,   $tickets->values(...'user__cdata__company'...around line608<td class="nohover" align="left"><?php echo $T; ?></td>

The API is able to create custom fields in conjunction with adding fields to Contact Information form.https://github.com/osTicket/osTicket-1.8/blob/develop/setup/doc/api/tickets.mdCustom Forms and FieldsFields added to both the common ticket and common client forms can accept data via the API as well

Write a Reply...