katana_public_api_client.api.stocktake.update_stocktake¶
katana_public_api_client.api.stocktake.update_stocktake
¶
Classes¶
Functions¶
asyncio(id, *, client, body)
async
¶
Update a stocktake
Updates the specified stocktake by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Parameters:
-
id(int) – -
body(UpdateStocktakeRequest) –Request payload for updating an existing stocktake Example: {'reference_no': 'STK-2024-003', 'location_id': 1, 'stocktake_date': '2024-01-17T09:00:00.000Z', 'notes': 'Quarterly inventory count - updated', 'status': 'IN_PROGRESS'}.
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 | Stocktake | None–Union[DetailedErrorResponse, ErrorResponse, Stocktake]
Source code in katana_public_api_client/api/stocktake/update_stocktake.py
asyncio_detailed(id, *, client, body)
async
¶
Update a stocktake
Updates the specified stocktake by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Parameters:
-
id(int) – -
body(UpdateStocktakeRequest) –Request payload for updating an existing stocktake Example: {'reference_no': 'STK-2024-003', 'location_id': 1, 'stocktake_date': '2024-01-17T09:00:00.000Z', 'notes': 'Quarterly inventory count - updated', 'status': 'IN_PROGRESS'}.
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 | Stocktake]–Response[Union[DetailedErrorResponse, ErrorResponse, Stocktake]]
Source code in katana_public_api_client/api/stocktake/update_stocktake.py
sync(id, *, client, body)
¶
Update a stocktake
Updates the specified stocktake by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Parameters:
-
id(int) – -
body(UpdateStocktakeRequest) –Request payload for updating an existing stocktake Example: {'reference_no': 'STK-2024-003', 'location_id': 1, 'stocktake_date': '2024-01-17T09:00:00.000Z', 'notes': 'Quarterly inventory count - updated', 'status': 'IN_PROGRESS'}.
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 | Stocktake | None–Union[DetailedErrorResponse, ErrorResponse, Stocktake]
Source code in katana_public_api_client/api/stocktake/update_stocktake.py
sync_detailed(id, *, client, body)
¶
Update a stocktake
Updates the specified stocktake by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Parameters:
-
id(int) – -
body(UpdateStocktakeRequest) –Request payload for updating an existing stocktake Example: {'reference_no': 'STK-2024-003', 'location_id': 1, 'stocktake_date': '2024-01-17T09:00:00.000Z', 'notes': 'Quarterly inventory count - updated', 'status': 'IN_PROGRESS'}.
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 | Stocktake]–Response[Union[DetailedErrorResponse, ErrorResponse, Stocktake]]