katana_public_api_client.api.material.get_material¶
katana_public_api_client.api.material.get_material
¶
Classes¶
Functions¶
asyncio(id, *, client, extend=UNSET, x_custom_fields_format=UNSET)
async
¶
Retrieve a material
Retrieves the details of an existing material based on ID.
Parameters:
-
id(int) – -
extend(list[GetMaterialExtendItem] | Unset, default:UNSET) – -
x_custom_fields_format(GetMaterialXCustomFieldsFormat | Unset, default:UNSET) –
Raises:
-
UnexpectedStatus–If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
-
TimeoutException–If the request takes longer than Client.timeout.
Returns:
-
ErrorResponse | Material | None–ErrorResponse | Material
Source code in katana_public_api_client/api/material/get_material.py
asyncio_detailed(id, *, client, extend=UNSET, x_custom_fields_format=UNSET)
async
¶
Retrieve a material
Retrieves the details of an existing material based on ID.
Parameters:
-
id(int) – -
extend(list[GetMaterialExtendItem] | Unset, default:UNSET) – -
x_custom_fields_format(GetMaterialXCustomFieldsFormat | Unset, default:UNSET) –
Raises:
-
UnexpectedStatus–If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
-
TimeoutException–If the request takes longer than Client.timeout.
Returns:
-
Response[ErrorResponse | Material]–Response[ErrorResponse | Material]
Source code in katana_public_api_client/api/material/get_material.py
sync(id, *, client, extend=UNSET, x_custom_fields_format=UNSET)
¶
Retrieve a material
Retrieves the details of an existing material based on ID.
Parameters:
-
id(int) – -
extend(list[GetMaterialExtendItem] | Unset, default:UNSET) – -
x_custom_fields_format(GetMaterialXCustomFieldsFormat | Unset, default:UNSET) –
Raises:
-
UnexpectedStatus–If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
-
TimeoutException–If the request takes longer than Client.timeout.
Returns:
-
ErrorResponse | Material | None–ErrorResponse | Material
Source code in katana_public_api_client/api/material/get_material.py
sync_detailed(id, *, client, extend=UNSET, x_custom_fields_format=UNSET)
¶
Retrieve a material
Retrieves the details of an existing material based on ID.
Parameters:
-
id(int) – -
extend(list[GetMaterialExtendItem] | Unset, default:UNSET) – -
x_custom_fields_format(GetMaterialXCustomFieldsFormat | Unset, default:UNSET) –
Raises:
-
UnexpectedStatus–If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
-
TimeoutException–If the request takes longer than Client.timeout.
Returns:
-
Response[ErrorResponse | Material]–Response[ErrorResponse | Material]