Price Override: PUT

Allows user to update set price or time.

Request

To change pricing or time specification, make a PUT request to:

/api/lot/:lotID/price/:priceID

where :lotID is the lot's unique id and :priceID is a unique id.

Original Pricing:

body: { 
  __v: 0,
  startTime: '2017-07-17T21:42:26.000Z',
  endTime: '2017-08-17T21:42:26.000Z',
  price: '8',
  lotID: '59960dc271733bbf1748e106',
  _id: '59960dc271733bbf1748e107' 
}

Updated Pricing:

updatedPrice = {
    price: '12'
}

Response

JSON object with updated price object.

{ 
  _id: '59961444550a85c8f5db189c',
  startTime: '2017-08-17T22:10:12.000Z',
  endTime: '2017-08-17T22:10:12.000Z',
  price: '12',
  lotID: '59961444550a85c8f5db189b',
  __v: 0 
}

results matching ""

    No results matching ""