katana_public_api_client.api.demand_forecast.create_demand_forecast¶
katana_public_api_client.api.demand_forecast.create_demand_forecast
¶
Classes¶
Functions¶
asyncio(*, client, body)
async
¶
Add planned demand forecast to variant
Add planned demand forecast for a variant in location for the specified periods.
Parameters:
-
body(CreateDemandForecastRequest) –Request payload for adding planned demand forecast periods for a variant in a location Example: {'variant_id': 1, 'location_id': 1, 'periods': [{'period_start': '2024-01-01T00:00:00.000Z', 'period_end': '2024-01-06T23:59:59.999Z', 'committed': '25'}]}.
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:
-
Any | DetailedErrorResponse | ErrorResponse | None–Any | DetailedErrorResponse | ErrorResponse
Source code in katana_public_api_client/api/demand_forecast/create_demand_forecast.py
asyncio_detailed(*, client, body)
async
¶
Add planned demand forecast to variant
Add planned demand forecast for a variant in location for the specified periods.
Parameters:
-
body(CreateDemandForecastRequest) –Request payload for adding planned demand forecast periods for a variant in a location Example: {'variant_id': 1, 'location_id': 1, 'periods': [{'period_start': '2024-01-01T00:00:00.000Z', 'period_end': '2024-01-06T23:59:59.999Z', 'committed': '25'}]}.
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[Any | DetailedErrorResponse | ErrorResponse]–Response[Any | DetailedErrorResponse | ErrorResponse]
Source code in katana_public_api_client/api/demand_forecast/create_demand_forecast.py
sync(*, client, body)
¶
Add planned demand forecast to variant
Add planned demand forecast for a variant in location for the specified periods.
Parameters:
-
body(CreateDemandForecastRequest) –Request payload for adding planned demand forecast periods for a variant in a location Example: {'variant_id': 1, 'location_id': 1, 'periods': [{'period_start': '2024-01-01T00:00:00.000Z', 'period_end': '2024-01-06T23:59:59.999Z', 'committed': '25'}]}.
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:
-
Any | DetailedErrorResponse | ErrorResponse | None–Any | DetailedErrorResponse | ErrorResponse
Source code in katana_public_api_client/api/demand_forecast/create_demand_forecast.py
sync_detailed(*, client, body)
¶
Add planned demand forecast to variant
Add planned demand forecast for a variant in location for the specified periods.
Parameters:
-
body(CreateDemandForecastRequest) –Request payload for adding planned demand forecast periods for a variant in a location Example: {'variant_id': 1, 'location_id': 1, 'periods': [{'period_start': '2024-01-01T00:00:00.000Z', 'period_end': '2024-01-06T23:59:59.999Z', 'committed': '25'}]}.
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[Any | DetailedErrorResponse | ErrorResponse]–Response[Any | DetailedErrorResponse | ErrorResponse]