API.fetch_model_by_name#

API.fetch_model_by_name(model_name: str, raise_on_status: bool = True) Union[Response, Dict[str, Any]]#

Fetch model record by its name.

Parameters
model_namestr

The model name

raise_on_statusbool, optional

Raise exception if status code is not 200.

Returns
Union[httpx.Response, list]

The response object.