request_method === 'GET' || $API_inserve->request_method === 'POST') { # This syncs the company id's from Sentri to the Inserve cloudDistributor # These are the same id's but it Inserve requires it to be synced to the cloudDistributor $API_inserve->checkPermissions('servers', 'RW'); $API_inserve->setupConnection(); $API_inserve->syncCompaniesFromSentri(); $API_inserve->apiOutput(200, ['success' => 'Sync is done successfully']); }