POST api/Bookings/updateBookingReason

Request Information

URI Parameters

None.

Body Parameters

BookingReason
NameDescriptionTypeAdditional information
BookingId

integer

None.

ReasonDescription

string

None.

Request Formats

application/json, text/json

Sample:
{
  "BookingId": 1,
  "ReasonDescription": "sample string 2"
}

text/html

Sample:
{"BookingId":1,"ReasonDescription":"sample string 2"}

application/xml, text/xml

Sample:
<BookingReason xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VetAPI.Models">
  <BookingId>1</BookingId>
  <ReasonDescription>sample string 2</ReasonDescription>
</BookingReason>

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 'BookingReason'.

Response Information

Resource Description

Booking
NameDescriptionTypeAdditional information
BookingId

integer

None.

TimeSlotId

integer

None.

AspNetUserId

string

None.

Date

date

None.

PracticeId

integer

None.

PetId

integer

None.

ReasonDescription

string

None.

Status

string

None.

UsedSlots

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "BookingId": 1,
  "TimeSlotId": 2,
  "AspNetUserId": "sample string 3",
  "Date": "2025-07-06T12:24:17.9618419+00:00",
  "PracticeId": 5,
  "PetId": 1,
  "ReasonDescription": "sample string 6",
  "Status": "sample string 7",
  "UsedSlots": 8
}

text/html

Sample:
{"BookingId":1,"TimeSlotId":2,"AspNetUserId":"sample string 3","Date":"2025-07-06T12:24:17.9618419+00:00","PracticeId":5,"PetId":1,"ReasonDescription":"sample string 6","Status":"sample string 7","UsedSlots":8}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'VetAPI.DataModel.AspNetRole' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'VetAPI.DataModel.AspNetRole' contains cycles and cannot be serialized if reference tracking is disabled.