Skip to content

katana_public_api_client.api.bom_row.update_bom_row

katana_public_api_client.api.bom_row.update_bom_row

Classes

Functions

asyncio(id, *, client, body) async

Update a BOM row

Updates the specified BOM row by setting the values of the parameters passed. Any parameters not provided will be left unchanged.

Parameters:

  • id (int) –
  • body (UpdateBomRowRequest) –

    Request payload for updating an existing BOM row. Only provided fields will be updated. Example: {'quantity': 3.0, 'notes': 'Updated quantity based on new specifications'}.

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:

Source code in katana_public_api_client/api/bom_row/update_bom_row.py
async def asyncio(
    id: int,
    *,
    client: AuthenticatedClient | Client,
    body: UpdateBomRowRequest,
) -> BomRow | DetailedErrorResponse | ErrorResponse | None:
    """Update a BOM row

     Updates the specified BOM row by setting the values of the parameters passed. Any parameters not
    provided will
    be left unchanged.

    Args:
        id (int):
        body (UpdateBomRowRequest): Request payload for updating an existing BOM row. Only
            provided fields will be updated. Example: {'quantity': 3.0, 'notes': 'Updated quantity
            based on new specifications'}.

    Raises:
        errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
        httpx.TimeoutException: If the request takes longer than Client.timeout.


    Returns:
        Union[BomRow, DetailedErrorResponse, ErrorResponse]
    """

    return (
        await asyncio_detailed(
            id=id,
            client=client,
            body=body,
        )
    ).parsed

asyncio_detailed(id, *, client, body) async

Update a BOM row

Updates the specified BOM row by setting the values of the parameters passed. Any parameters not provided will be left unchanged.

Parameters:

  • id (int) –
  • body (UpdateBomRowRequest) –

    Request payload for updating an existing BOM row. Only provided fields will be updated. Example: {'quantity': 3.0, 'notes': 'Updated quantity based on new specifications'}.

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:

Source code in katana_public_api_client/api/bom_row/update_bom_row.py
async def asyncio_detailed(
    id: int,
    *,
    client: AuthenticatedClient | Client,
    body: UpdateBomRowRequest,
) -> Response[BomRow | DetailedErrorResponse | ErrorResponse]:
    """Update a BOM row

     Updates the specified BOM row by setting the values of the parameters passed. Any parameters not
    provided will
    be left unchanged.

    Args:
        id (int):
        body (UpdateBomRowRequest): Request payload for updating an existing BOM row. Only
            provided fields will be updated. Example: {'quantity': 3.0, 'notes': 'Updated quantity
            based on new specifications'}.

    Raises:
        errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
        httpx.TimeoutException: If the request takes longer than Client.timeout.


    Returns:
        Response[Union[BomRow, DetailedErrorResponse, ErrorResponse]]
    """

    kwargs = _get_kwargs(
        id=id,
        body=body,
    )

    response = await client.get_async_httpx_client().request(**kwargs)

    return _build_response(client=client, response=response)

sync(id, *, client, body)

Update a BOM row

Updates the specified BOM row by setting the values of the parameters passed. Any parameters not provided will be left unchanged.

Parameters:

  • id (int) –
  • body (UpdateBomRowRequest) –

    Request payload for updating an existing BOM row. Only provided fields will be updated. Example: {'quantity': 3.0, 'notes': 'Updated quantity based on new specifications'}.

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:

Source code in katana_public_api_client/api/bom_row/update_bom_row.py
def sync(
    id: int,
    *,
    client: AuthenticatedClient | Client,
    body: UpdateBomRowRequest,
) -> BomRow | DetailedErrorResponse | ErrorResponse | None:
    """Update a BOM row

     Updates the specified BOM row by setting the values of the parameters passed. Any parameters not
    provided will
    be left unchanged.

    Args:
        id (int):
        body (UpdateBomRowRequest): Request payload for updating an existing BOM row. Only
            provided fields will be updated. Example: {'quantity': 3.0, 'notes': 'Updated quantity
            based on new specifications'}.

    Raises:
        errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
        httpx.TimeoutException: If the request takes longer than Client.timeout.


    Returns:
        Union[BomRow, DetailedErrorResponse, ErrorResponse]
    """

    return sync_detailed(
        id=id,
        client=client,
        body=body,
    ).parsed

sync_detailed(id, *, client, body)

Update a BOM row

Updates the specified BOM row by setting the values of the parameters passed. Any parameters not provided will be left unchanged.

Parameters:

  • id (int) –
  • body (UpdateBomRowRequest) –

    Request payload for updating an existing BOM row. Only provided fields will be updated. Example: {'quantity': 3.0, 'notes': 'Updated quantity based on new specifications'}.

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:

Source code in katana_public_api_client/api/bom_row/update_bom_row.py
def sync_detailed(
    id: int,
    *,
    client: AuthenticatedClient | Client,
    body: UpdateBomRowRequest,
) -> Response[BomRow | DetailedErrorResponse | ErrorResponse]:
    """Update a BOM row

     Updates the specified BOM row by setting the values of the parameters passed. Any parameters not
    provided will
    be left unchanged.

    Args:
        id (int):
        body (UpdateBomRowRequest): Request payload for updating an existing BOM row. Only
            provided fields will be updated. Example: {'quantity': 3.0, 'notes': 'Updated quantity
            based on new specifications'}.

    Raises:
        errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
        httpx.TimeoutException: If the request takes longer than Client.timeout.


    Returns:
        Response[Union[BomRow, DetailedErrorResponse, ErrorResponse]]
    """

    kwargs = _get_kwargs(
        id=id,
        body=body,
    )

    response = client.get_httpx_client().request(
        **kwargs,
    )

    return _build_response(client=client, response=response)