def METHOD_NAME(api, id, file):
    """
    :param rest.DataApi api:
    :param int id: data id
    :param list[string] file:
    """
    model = rest.DataApiModelsAddFilesInputModel(files=[])
    for x in file:
        upload_info = object_storage.upload_file(api.api_client, x, 'Data')
        model.files.append(rest.ComponentsAddFileInputModel(file_name=upload_info.file_name,
                                                            stored_path=upload_info.stored_path))
    api.add_data_file(id, body=model, _request_timeout=heavy_request_timeout(api.api_client))