Spot: PUT
Make a change to existing parking spot information.
Request
Edit a specified lot:
/api/lot/:lotID/spot/:spotID
Original Spot:
body: {
name: 'example spot',
description: 'example spot description',
lotID: '55960edd4aa657147baae1d3',
_id: '59960edd4aa657147baae1d4',
timeslots: []
}
Updated Spot:
updatedSpot = {
name: 'updated spot',
description: 'updated description'
};
Requires bearer authentication.
Response
Status: 200
JSON object with updated parking spot.
body: {
name: 'updated spot',
description: 'updated description',
lotID: '55960edd4aa657147baae1d3',
_id: '59960edd4aa657147baae1d4',
timeslots: []
}