POST api/promotion/Promotion_Upsert

Request Information

URI Parameters

None.

Body Parameters

Promotion
NameDescriptionTypeAdditional information
Id

integer

None.

VendorId

integer

None.

ProductId

integer

None.

ProductName

string

None.

ProductTypeId

integer

None.

ProductTypeName

string

None.

ProductBrandId

integer

None.

ProductBrandName

string

None.

StartDate

string

None.

EndDate

string

None.

Price

string

None.

OriginalPrice

decimal number

None.

OfferPrice

decimal number

None.

Language

string

None.

CreatedDate

date

None.

CreatedBy

integer

None.

UpdatedDate

date

None.

UpdatedBy

integer

None.

StartDateStr

string

None.

EndDateStr

string

None.

CreatedDateStr

string

None.

UpdatedDateStr

string

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: Error getting value from 'StartDateStr' on 'BeautyBook.Entities.V1.Promotion'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Error getting value from 'StartDateStr' on 'BeautyBook.Entities.V1.Promotion'.

text/xml

Sample:
<Promotion xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.V1">
  <CreatedBy xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">16</CreatedBy>
  <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">2025-07-08T19:59:52.6450954+03:00</CreatedDate>
  <EndDate xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 10</EndDate>
  <Id xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">1</Id>
  <Language xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 14</Language>
  <OfferPrice xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">13</OfferPrice>
  <OriginalPrice xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">12</OriginalPrice>
  <Price xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 11</Price>
  <ProductBrandId xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">7</ProductBrandId>
  <ProductBrandName xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 8</ProductBrandName>
  <ProductId xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">3</ProductId>
  <ProductName xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 4</ProductName>
  <ProductTypeId xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">5</ProductTypeId>
  <ProductTypeName xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 6</ProductTypeName>
  <StartDate xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 9</StartDate>
  <UpdatedBy xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">18</UpdatedBy>
  <UpdatedDate xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">2025-07-08T19:59:52.6450954+03:00</UpdatedDate>
  <VendorId xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">2</VendorId>
</Promotion>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/xml

Sample:

Sample not available.