katana_public_api_client.api.product.update_product¶
katana_public_api_client.api.product.update_product
¶
Classes¶
Functions¶
asyncio(id, *, client, body)
async
¶
Update a product
Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Parameters:
-
id(int) – -
body(UpdateProductRequest) –Request payload for updating an existing finished product's properties, configurations, and manufacturing specifications Example: {'name': 'Professional Kitchen Knife Set', 'uom': 'set', 'category_name': 'Premium Kitchenware', 'is_sellable': True, 'is_producible': True, 'is_purchasable': False, 'is_auto_assembly': False, 'default_supplier_id': 1501, 'additional_info': 'High-carbon stainless steel with ergonomic handles, dishwasher safe', 'batch_tracked': False, 'serial_tracked': True, 'operations_in_sequence': True, 'purchase_uom': 'set', 'purchase_uom_conversion_rate': 1.0, 'custom_field_collection_id': 5, 'configs': [{'name': 'Piece Count', 'values': ['6-piece', '8-piece', '12-piece']}, {'name': 'Handle Material', 'values': ['Wood', 'Steel', 'Composite']}]}.
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 | Product | None–Union[DetailedErrorResponse, ErrorResponse, Product]
Source code in katana_public_api_client/api/product/update_product.py
asyncio_detailed(id, *, client, body)
async
¶
Update a product
Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Parameters:
-
id(int) – -
body(UpdateProductRequest) –Request payload for updating an existing finished product's properties, configurations, and manufacturing specifications Example: {'name': 'Professional Kitchen Knife Set', 'uom': 'set', 'category_name': 'Premium Kitchenware', 'is_sellable': True, 'is_producible': True, 'is_purchasable': False, 'is_auto_assembly': False, 'default_supplier_id': 1501, 'additional_info': 'High-carbon stainless steel with ergonomic handles, dishwasher safe', 'batch_tracked': False, 'serial_tracked': True, 'operations_in_sequence': True, 'purchase_uom': 'set', 'purchase_uom_conversion_rate': 1.0, 'custom_field_collection_id': 5, 'configs': [{'name': 'Piece Count', 'values': ['6-piece', '8-piece', '12-piece']}, {'name': 'Handle Material', 'values': ['Wood', 'Steel', 'Composite']}]}.
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 | Product]–Response[Union[DetailedErrorResponse, ErrorResponse, Product]]
Source code in katana_public_api_client/api/product/update_product.py
sync(id, *, client, body)
¶
Update a product
Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Parameters:
-
id(int) – -
body(UpdateProductRequest) –Request payload for updating an existing finished product's properties, configurations, and manufacturing specifications Example: {'name': 'Professional Kitchen Knife Set', 'uom': 'set', 'category_name': 'Premium Kitchenware', 'is_sellable': True, 'is_producible': True, 'is_purchasable': False, 'is_auto_assembly': False, 'default_supplier_id': 1501, 'additional_info': 'High-carbon stainless steel with ergonomic handles, dishwasher safe', 'batch_tracked': False, 'serial_tracked': True, 'operations_in_sequence': True, 'purchase_uom': 'set', 'purchase_uom_conversion_rate': 1.0, 'custom_field_collection_id': 5, 'configs': [{'name': 'Piece Count', 'values': ['6-piece', '8-piece', '12-piece']}, {'name': 'Handle Material', 'values': ['Wood', 'Steel', 'Composite']}]}.
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 | Product | None–Union[DetailedErrorResponse, ErrorResponse, Product]
Source code in katana_public_api_client/api/product/update_product.py
sync_detailed(id, *, client, body)
¶
Update a product
Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Parameters:
-
id(int) – -
body(UpdateProductRequest) –Request payload for updating an existing finished product's properties, configurations, and manufacturing specifications Example: {'name': 'Professional Kitchen Knife Set', 'uom': 'set', 'category_name': 'Premium Kitchenware', 'is_sellable': True, 'is_producible': True, 'is_purchasable': False, 'is_auto_assembly': False, 'default_supplier_id': 1501, 'additional_info': 'High-carbon stainless steel with ergonomic handles, dishwasher safe', 'batch_tracked': False, 'serial_tracked': True, 'operations_in_sequence': True, 'purchase_uom': 'set', 'purchase_uom_conversion_rate': 1.0, 'custom_field_collection_id': 5, 'configs': [{'name': 'Piece Count', 'values': ['6-piece', '8-piece', '12-piece']}, {'name': 'Handle Material', 'values': ['Wood', 'Steel', 'Composite']}]}.
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 | Product]–Response[Union[DetailedErrorResponse, ErrorResponse, Product]]