aito.client.requests.data_api_request.ModifyRequest
- class aito.client.requests.data_api_request.ModifyRequest(query: Dict)
Bases:
_PostRequest,_FinalRequest,DataAPIRequestRequest to Modify data atomically
Allows individual modifications or a sequence of modifications in one atomic operation.
- Parameters:
query (Dict) – The modify query with operations
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
endpointendpoint_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
ModifyResponse