PUT api/salesperson/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

globally unique identifier

Required

Body Parameters

SalesPersonDto
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

UserId

globally unique identifier

None.

WorkingAddressId

globally unique identifier

None.

Forename

string

None.

Surname

string

None.

WorkingHours

Collection of WorkingHoursDto

None.

IsDeleted

boolean

None.

EmailAddress

string

None.

Appointments

Collection of AppointmentDto

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.SalesPersonDto'. Path 'Appointments[0].Person.Address.SalesPeople'.

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.SalesPersonDto'. Path 'Appointments[0].Person.Address.SalesPeople'.

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

Response Information

Resource Description

None.