Add 'type' argument for the API request