katana_public_api_client.api.supplier.update_supplier¶
katana_public_api_client.api.supplier.update_supplier
¶
Classes¶
Functions¶
asyncio(id, *, client, body)
async
¶
Update a supplier
Updates the specified supplier by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Parameters:
-
id(int) – -
body(UpdateSupplierRequest) –Request payload for updating an existing supplier's contact information and details Example: {'name': 'Premium Kitchen Supplies Ltd', 'email': 'orders@premiumkitchen.com', 'phone': '+1-555-0134', 'currency': 'USD', 'comment': 'Primary supplier for kitchen equipment and utensils. Excellent customer service.'}.
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:
-
DetailedErrorResponse | ErrorResponse | Supplier | None–Union[DetailedErrorResponse, ErrorResponse, Supplier]
Source code in katana_public_api_client/api/supplier/update_supplier.py
asyncio_detailed(id, *, client, body)
async
¶
Update a supplier
Updates the specified supplier by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Parameters:
-
id(int) – -
body(UpdateSupplierRequest) –Request payload for updating an existing supplier's contact information and details Example: {'name': 'Premium Kitchen Supplies Ltd', 'email': 'orders@premiumkitchen.com', 'phone': '+1-555-0134', 'currency': 'USD', 'comment': 'Primary supplier for kitchen equipment and utensils. Excellent customer service.'}.
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[DetailedErrorResponse | ErrorResponse | Supplier]–Response[Union[DetailedErrorResponse, ErrorResponse, Supplier]]
Source code in katana_public_api_client/api/supplier/update_supplier.py
sync(id, *, client, body)
¶
Update a supplier
Updates the specified supplier by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Parameters:
-
id(int) – -
body(UpdateSupplierRequest) –Request payload for updating an existing supplier's contact information and details Example: {'name': 'Premium Kitchen Supplies Ltd', 'email': 'orders@premiumkitchen.com', 'phone': '+1-555-0134', 'currency': 'USD', 'comment': 'Primary supplier for kitchen equipment and utensils. Excellent customer service.'}.
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:
-
DetailedErrorResponse | ErrorResponse | Supplier | None–Union[DetailedErrorResponse, ErrorResponse, Supplier]
Source code in katana_public_api_client/api/supplier/update_supplier.py
sync_detailed(id, *, client, body)
¶
Update a supplier
Updates the specified supplier by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Parameters:
-
id(int) – -
body(UpdateSupplierRequest) –Request payload for updating an existing supplier's contact information and details Example: {'name': 'Premium Kitchen Supplies Ltd', 'email': 'orders@premiumkitchen.com', 'phone': '+1-555-0134', 'currency': 'USD', 'comment': 'Primary supplier for kitchen equipment and utensils. Excellent customer service.'}.
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[DetailedErrorResponse | ErrorResponse | Supplier]–Response[Union[DetailedErrorResponse, ErrorResponse, Supplier]]