aito.api.relate

aito.api.relate(client: AitoClient, query: Dict, raise_for_status: bool | None = None, use_job: bool = False) RelateResponse | RequestError

send a query to the Relate API

Parameters:
  • client (AitoClient) – the AitoClient instance

  • query (Dict) – the relate query

  • raise_for_status (Optional[bool]) – raise RequestError if the request fails instead of returning the error If set to None, value from Client will be used. Defaults to None

  • use_job (bool) – use job fo request that takes longer than 30 seconds, defaults to False

Returns:

RelateResponse or RequestError if an error occurred and not raise_for_status

Return type:

Union[RelateResponse, RequestError]