rename get_api_for_version() to alter_api_response() and use in plugin command