PUT api/appointments/{id}

Updates the appointment from the given .

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

The id of the resource.

globally unique identifier

Required

Body Parameters

AppointmentDto
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

CreationDate

date

None.

BookingDate

date

None.

StartDate

date

None.

EndDate

date

None.

Attended

boolean

None.

Purchased

boolean

None.

Notes

string

None.

InviteId

globally unique identifier

None.

AddressName

string

None.

AddressId

globally unique identifier

None.

InviteKeyKey

string

None.

PersonId

globally unique identifier

None.

Person

PersonDto

None.

PromotionalEventId

globally unique identifier

None.

SalesPersonId

globally unique identifier

None.

BookedById

globally unique identifier

None.

IsDeleted

boolean

None.

ProductSelections

Collection of globally unique identifier

None.

PurchasedProductId

globally unique identifier

None.

Request Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Self referencing loop detected with type 'Aardvark.EventManagement.Models.AppointmentDto'. Path 'Person.Address.SalesPeople[0].Appointments'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Self referencing loop detected with type 'Aardvark.EventManagement.Models.AppointmentDto'. Path 'Person.Address.SalesPeople[0].Appointments'.

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Type 'Aardvark.EventManagement.Models.AddressCoreDto' with data contract name 'AddressCoreDto:http://schemas.datacontract.org/2004/07/Aardvark.EventManagement.Models' is not expected. Consider using a DataContractResolver if you are using DataContractSerializer or add any types not known statically to the list of known types - for example, by using the KnownTypeAttribute attribute or by adding them to the list of known types passed to the serializer.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Type 'Aardvark.EventManagement.Models.AddressCoreDto' with data contract name 'AddressCoreDto:http://schemas.datacontract.org/2004/07/Aardvark.EventManagement.Models' is not expected. Consider using a DataContractResolver if you are using DataContractSerializer or add any types not known statically to the list of known types - for example, by using the KnownTypeAttribute attribute or by adding them to the list of known types passed to the serializer.

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

Response Information

Resource Description

None.