katana_public_api_client.api.batch.update_batch_stock¶
katana_public_api_client.api.batch.update_batch_stock
¶
Classes¶
Functions¶
asyncio(batch_id, *, client, body)
async
¶
Update batch details
Updates the specified batch details by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Parameters:
-
batch_id(int) – -
body(BatchStockUpdate) –Request payload for updating batch properties and tracking information Example: {'batch_number': 'BAT-2024-001-UPDATED', 'expiration_date': '2025-12-31T23:59:59.000Z', 'batch_barcode': '0317-V2'}.
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:
-
BatchResponse | DetailedErrorResponse | ErrorResponse | None–Union[BatchResponse, DetailedErrorResponse, ErrorResponse]
Source code in katana_public_api_client/api/batch/update_batch_stock.py
asyncio_detailed(batch_id, *, client, body)
async
¶
Update batch details
Updates the specified batch details by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Parameters:
-
batch_id(int) – -
body(BatchStockUpdate) –Request payload for updating batch properties and tracking information Example: {'batch_number': 'BAT-2024-001-UPDATED', 'expiration_date': '2025-12-31T23:59:59.000Z', 'batch_barcode': '0317-V2'}.
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[BatchResponse | DetailedErrorResponse | ErrorResponse]–Response[Union[BatchResponse, DetailedErrorResponse, ErrorResponse]]
Source code in katana_public_api_client/api/batch/update_batch_stock.py
sync(batch_id, *, client, body)
¶
Update batch details
Updates the specified batch details by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Parameters:
-
batch_id(int) – -
body(BatchStockUpdate) –Request payload for updating batch properties and tracking information Example: {'batch_number': 'BAT-2024-001-UPDATED', 'expiration_date': '2025-12-31T23:59:59.000Z', 'batch_barcode': '0317-V2'}.
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:
-
BatchResponse | DetailedErrorResponse | ErrorResponse | None–Union[BatchResponse, DetailedErrorResponse, ErrorResponse]
Source code in katana_public_api_client/api/batch/update_batch_stock.py
sync_detailed(batch_id, *, client, body)
¶
Update batch details
Updates the specified batch details by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Parameters:
-
batch_id(int) – -
body(BatchStockUpdate) –Request payload for updating batch properties and tracking information Example: {'batch_number': 'BAT-2024-001-UPDATED', 'expiration_date': '2025-12-31T23:59:59.000Z', 'batch_barcode': '0317-V2'}.
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[BatchResponse | DetailedErrorResponse | ErrorResponse]–Response[Union[BatchResponse, DetailedErrorResponse, ErrorResponse]]