PUT api/promotionalevents/{id}

Updates the given .

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

The id of the resource.

globally unique identifier

Required

Body Parameters

PromotionalEventDto
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

CreationDate

date

None.

Name

string

None.

StartDate

date

None.

EndDate

date

None.

PrincipalUserId

globally unique identifier

None.

CompanyId

globally unique identifier

None.

AddressId

globally unique identifier

Required

Address

AddressDto

None.

BrandIds

Collection of globally unique identifier

None.

CampaignId

globally unique identifier

Required

CampaignName

string

None.

IsDeleted

boolean

None.

ProductSelections

Collection of globally unique identifier

None.

InviteCount

integer

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 for property 'Address' with type 'Aardvark.EventManagement.Models.AddressDto'. Path 'Address.SalesPeople[0].Appointments[0].Person'.

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 for property 'Address' with type 'Aardvark.EventManagement.Models.AddressDto'. Path 'Address.SalesPeople[0].Appointments[0].Person'.

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

Response Information

Resource Description

None.