change apiType to just api;