Thanks for the reply Kevin! I totally understand, I wasn't sure.
I figured it out and I wanted to share the solution to the thread just incase anyone else came across the question from a search. Apologies again if this doesn't belong here.
In order to use a newly created source as an API call source:
- First create the new enum in the database in the ost_ticket table
- Then edit the 'include/class.ticket.php' file and find the switch statement with this case
case 'api':
$fields['source'] = array('type'=>'string', 'required'=>1, 'error'=>__('Indicate ticket source'));
break;
- add another case to support your new enum name, copy the structure of the 'api' case above
- Finally, find the source enum in 'include/class.ticket.php'
static protected $sources = array(
'Phone' =>
/* @trans */ 'Phone',
'Email' =>
/* @trans */ 'Email',
'Web' =>
/* @trans */ 'Web',
'API' =>
/* @trans */ 'API',
'Other' =>
/* @trans */ 'Other',
);
and add another entry for your new source in there.
In your application POST request, be sure to set the 'source' to your new enum and it should submit fine.
I know this may change in the future, but it's currently applicable to the version I'm using. Hope this helps!