POST api/emailMarketing/EmailMarketing_Upsert

Request Information

URI Parameters

None.

Body Parameters

EmailMarketing
NameDescriptionTypeAdditional information
Id

integer

None.

SalonId

integer

None.

EmailSubject

string

None.

Gender

integer

None.

UserId

string

None.

CustomerSinceStart

string

None.

CustomerSinceEnd

string

None.

LastVisitStart

string

None.

LastVisitEnd

string

None.

MinAppoinment

integer

None.

MaxAppoinment

integer

None.

MinYear

integer

None.

MaxYear

integer

None.

ServicesId

string

None.

IsSendEmail

boolean

None.

SaveStatus

boolean

None.

EmailTemplate

string

None.

CreatedDate

date

None.

CreatedBy

integer

None.

UpdatedDate

date

None.

UpdatedBy

integer

None.

UserFullName

string

None.

ToEmail

string

None.

Body

string

None.

EmailMarketingId

integer

None.

UserIds

string

None.

NoOfEmailCount

integer

None.

SpecialCustomer

string

None.

CreatedDateStr

string

None.

UpdatedDateStr

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "SalonId": 2,
  "EmailSubject": "sample string 3",
  "Gender": 4,
  "UserId": "sample string 5",
  "CustomerSinceStart": "sample string 6",
  "CustomerSinceEnd": "sample string 7",
  "LastVisitStart": "sample string 8",
  "LastVisitEnd": "sample string 9",
  "MinAppoinment": 10,
  "MaxAppoinment": 11,
  "MinYear": 12,
  "MaxYear": 13,
  "ServicesId": "sample string 14",
  "IsSendEmail": true,
  "SaveStatus": true,
  "EmailTemplate": "sample string 17",
  "CreatedDate": "2025-07-08T20:04:51.7716555+03:00",
  "CreatedBy": 19,
  "UpdatedDate": "2025-07-08T20:04:51.7716555+03:00",
  "UpdatedBy": 21,
  "UserFullName": "sample string 22",
  "ToEmail": "sample string 23",
  "Body": "sample string 24",
  "EmailMarketingId": 25,
  "UserIds": "sample string 26",
  "NoOfEmailCount": 27,
  "SpecialCustomer": "sample string 28",
  "CreatedDateStr": "08-Jul-2025",
  "UpdatedDateStr": "08-Jul-2025 08:04 PM"
}

text/xml

Sample:
<EmailMarketing xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.V1">
  <Body xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 24</Body>
  <CreatedBy xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">19</CreatedBy>
  <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">2025-07-08T20:04:51.7716555+03:00</CreatedDate>
  <CustomerSinceEnd xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 7</CustomerSinceEnd>
  <CustomerSinceStart xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 6</CustomerSinceStart>
  <EmailMarketingId xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">25</EmailMarketingId>
  <EmailSubject xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 3</EmailSubject>
  <EmailTemplate xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 17</EmailTemplate>
  <Gender xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">4</Gender>
  <Id xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">1</Id>
  <IsSendEmail xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">true</IsSendEmail>
  <LastVisitEnd xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 9</LastVisitEnd>
  <LastVisitStart xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 8</LastVisitStart>
  <MaxAppoinment xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">11</MaxAppoinment>
  <MaxYear xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">13</MaxYear>
  <MinAppoinment xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">10</MinAppoinment>
  <MinYear xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">12</MinYear>
  <NoOfEmailCount xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">27</NoOfEmailCount>
  <SalonId xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">2</SalonId>
  <SaveStatus xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">true</SaveStatus>
  <ServicesId xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 14</ServicesId>
  <SpecialCustomer xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 28</SpecialCustomer>
  <ToEmail xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 23</ToEmail>
  <UpdatedBy xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">21</UpdatedBy>
  <UpdatedDate xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">2025-07-08T20:04:51.7716555+03:00</UpdatedDate>
  <UserFullName xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 22</UserFullName>
  <UserId xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 5</UserId>
  <UserIds xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 26</UserIds>
</EmailMarketing>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/xml

Sample:

Sample not available.