Update Reservation

This API operation updates the reservation information to add a package into an existing locker unit in the given locker bank.

SecuritybearerAuth
Request
path Parameters
lockerBankId
required
string

Unique identifier of the locker bank where the locker unit is located.

lockerUnitId
required
string

The unique identifier of the locker unit whose reservation details need to be updated.

Request Body schema: application/json

Update the reservation parcels for an existing locker unit.

userId
string

The identifier of the user performing the reservation update.

reservationExpiryTime
string

The expiry time for the reservation.

required
Array of objects (Parcel)
Responses
200

Successful operation

400

Invalid request.

401

The request could not be authorized.

404

The requested resource was not found.

500

The request could not be completed due to an internal error.

patch/api/v1/lockerBanks/{lockerBankId}/lockers/{lockerUnitId}/reservation/update
Request samples
application/json
{
  • "userId": "user@gmail.com",
  • "reservationExpiryTime": "string",
  • "parcels": [
    ]
}
Response samples
application/json
{
  • "lockerBankId": "AOne",
  • "lockerUnitId": "7",
  • "userId": "user@gmail.com",
  • "reservationExpiryTime": "string",
  • "parcelsReserved": [
    ]
}