SuiteAPI with custom modules

Here is the PHP code from the file that calls the SuiteCRM Rest api. “institute” is a custom module. IF i replace that with “Project”, “Contact”, “Leads” it works fine. But not with any custom made modules. So i assume there is some hard code that set up the allowed modules inside the API programs.

IF thats the case is there a work around or better yet an “selected modules for use by API” section in the Admin side.
thanks
steve


$fields_array = array('name');
$parameters = array(

    'session' => $session,                                 //Session ID
    'module_name' => 'Institute',                             //Module name
    'query' => " institute.name IS NOT NULL ",   //Where condition without "where" keyword
    'order_by' => " institute.id ",                 //$order_by
    'offset'  => 0,                                               //offset
    'select_fields' => $fields_array,                      //select_fields
    'link_name_to_fields_array' => array(array()),//optional
    'max_results' => 5,                                        //max results                  
    'deleted' => 'false',                                        //deleted
);