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
reservationItemIdstringRequiredThe ID of the reservation item.
The attributes to update in the reservation item.
contextSharedContextA context used to share resources, such as transaction manager, between the application and the module.
contextSharedContextReturns
The updated reservation item.
Was this section helpful?