PUT api/user/notification-preferences

Request Information

URI Parameters

None.

Body Parameters

UserNotificationPreferencesUpdateRequestDTO
NameDescriptionTypeAdditional information
DepartureReminderEnabled

boolean

None.

VehicleCheckedInEnabled

boolean

None.

KeysHandedBackEnabled

boolean

None.

NewDocumentsEnabled

boolean

None.

BookingCancelledEnabled

boolean

None.

CustomMessageEnabled

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "departureReminderEnabled": true,
  "vehicleCheckedInEnabled": true,
  "keysHandedBackEnabled": true,
  "newDocumentsEnabled": true,
  "bookingCancelledEnabled": true,
  "customMessageEnabled": true
}

application/xml, text/xml

Sample:
<UserNotificationPreferencesUpdateRequestDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CruiseParking.Website.API.Models">
  <BookingCancelledEnabled>true</BookingCancelledEnabled>
  <CustomMessageEnabled>true</CustomMessageEnabled>
  <DepartureReminderEnabled>true</DepartureReminderEnabled>
  <KeysHandedBackEnabled>true</KeysHandedBackEnabled>
  <NewDocumentsEnabled>true</NewDocumentsEnabled>
  <VehicleCheckedInEnabled>true</VehicleCheckedInEnabled>
</UserNotificationPreferencesUpdateRequestDTO>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'UserNotificationPreferencesUpdateRequestDTO'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.