Skip to main content
Skip to main content

updateReservationItem - Inventory Module Reference

This documentation provides a reference to the updateReservationItem method. This belongs to the Inventory Module.

This method is used to update a reservation item.

Example

import {
initialize as initializeInventoryModule,
} from "@medusajs/inventory"

async function updateReservationItem (
reservationItemId: string,
quantity: number
) {
const inventoryModule = await initializeInventoryModule({})

const reservationItem = await inventoryModule.updateReservationItem(
reservationItemId,
{
quantity
}
)

// do something with the reservation item or return it
}

Parameters

reservationItemIdstringRequired
The ID of the reservation item.
The attributes to update in the reservation item.
A context used to share resources, such as transaction manager, between the application and the module.

Returns

PromisePromise<ReservationItemDTO>Required
The updated reservation item.
Was this section helpful?