Lager - v5.2.0
    Preparing search index...
    • Function

      Updates an existing product in the API.

      This function sends a PUT request to the API to update an existing product with the provided product details. If the request is successful, it returns the response. In case of an error, it catches the error and logs it.

      updateProduct

      Parameters

      • updated_product: ProductUpdate

        The updated details of the product.

      Returns Promise<undefined | Response>

      The response from the API, or undefined if an error occurs.

      If there is an error during the request, it is caught and logged.