aito.client.requests.data_api_request.UploadEntriesRequest
- class aito.client.requests.data_api_request.UploadEntriesRequest(table_name: str, entries: List[Dict])
Bases:
_PostRequest,_PatternEndpoint,DataAPIRequestRequest to Insert entries to a table
- Parameters:
table_name (str) – the name of the table to be uploaded
entries (List[Dict]) – a list of the table entries
Methods
make_request(method, endpoint, query)factory method to return the appropriate request class instance after checking the input endpoint and method :param method: the method of the request :type method: str :param endpoint: the endpoint of the request :type endpoint: str :param query: an Aito query if applicable, optional :type query: Optional[Union[Dict, List]] :return: the appropriate request class intsnace :rtype: AitoRequest
path_matches(path_to_match)Attributes
endpoint_prefixmethod- classmethod make_request(method: str, endpoint: str, query: Dict | List | None) AitoRequest
factory method to return the appropriate request class instance after checking the input endpoint and method :param method: the method of the request :type method: str :param endpoint: the endpoint of the request :type endpoint: str :param query: an Aito query if applicable, optional :type query: Optional[Union[Dict, List]] :return: the appropriate request class intsnace :rtype: AitoRequest
- response_cls
alias of
BaseResponse