POST api/v1/Drivers/UpdateMySpotAvailability
Request Information
URI Parameters
None.
Body Parameters
InputUpdateMySpotAvailabilityName | Description | Type | Additional information |
---|---|---|---|
UserID | integer |
Required |
|
ParkingLotID | integer |
Required |
|
ParkingSpotID | integer |
Required |
|
AvailableDates | Collection of DateAvailability |
Required |
Request Formats
application/json, text/json
Sample:
{ "UserID": 1, "ParkingLotID": 2, "ParkingSpotID": 3, "AvailableDates": [ { "OPenDate": "2024-09-18T12:56:30.3977459-04:00" }, { "OPenDate": "2024-09-18T12:56:30.3977459-04:00" } ] }
application/xml, text/xml
Sample:
<InputUpdateMySpotAvailability xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TruckSpot.Models.API.Input"> <AvailableDates> <DateAvailability> <OPenDate>2024-09-18T12:56:30.3977459-04:00</OPenDate> </DateAvailability> <DateAvailability> <OPenDate>2024-09-18T12:56:30.3977459-04:00</OPenDate> </DateAvailability> </AvailableDates> <ParkingLotID>2</ParkingLotID> <ParkingSpotID>3</ParkingSpotID> <UserID>1</UserID> </InputUpdateMySpotAvailability>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |