POST api/userViolation/UserViolation_Upsert

Request Information

URI Parameters

None.

Body Parameters

UserViolation
NameDescriptionTypeAdditional information
Id

integer

None.

UserId

integer

None.

SalonId

integer

None.

LookUpViolationTypeId

integer

None.

FromDate

string

None.

ViolationDate

string

None.

ToDate

string

None.

NoOfDays

integer

None.

ViolationDetails

string

None.

IsPdfSend

byte

None.

IsSendWhatsapp

integer

None.

Reason

string

None.

PrimaryPhone

string

None.

SalonLogoUrl

string

None.

ViolationPdfPath

string

None.

LookUpStatusId

integer

None.

DepartmentId

integer

None.

LookUpStatusChangedDate

date

None.

LookUpStatusChangedBy

integer

None.

CreatedDate

date

None.

CreatedBy

integer

None.

UpdatedDate

date

None.

UpdatedBy

integer

None.

DeletedDate

date

None.

DeletedBy

integer

None.

IsDeleted

boolean

None.

FullName

string

None.

EmployeeFullname

string

None.

ManagerFullname

string

None.

Email

string

None.

ProfileImage

string

None.

LookUpEmployeeRoles

string

None.

LookUpEmployeeRolesArabic

string

None.

ViolationType

string

None.

ViolationTypeArabic

string

None.

Position

string

None.

LookUpStatus

string

None.

LookUpEmployeeRolesId

integer

None.

SecondName

string

None.

LookUpViolationType

string

None.

ViolationTypeCount

string

None.

EmployeesId

integer

None.

Language

string

None.

SalonName

string

None.

CreatedDateStr

string

None.

UpdatedDateStr

string

None.

DeletedDateStr

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "UserId": 2,
  "SalonId": 3,
  "LookUpViolationTypeId": 4,
  "FromDate": "sample string 5",
  "ViolationDate": "sample string 6",
  "ToDate": "sample string 7",
  "NoOfDays": 8,
  "ViolationDetails": "sample string 9",
  "IsPdfSend": 64,
  "IsSendWhatsapp": 11,
  "Reason": "sample string 12",
  "PrimaryPhone": "sample string 13",
  "SalonLogoUrl": "sample string 14",
  "ViolationPdfPath": "sample string 15",
  "LookUpStatusId": 16,
  "DepartmentId": 17,
  "LookUpStatusChangedDate": "2026-02-04T05:10:18.2525839+03:00",
  "LookUpStatusChangedBy": 19,
  "CreatedDate": "2026-02-04T05:10:18.2525839+03:00",
  "CreatedBy": 21,
  "UpdatedDate": "2026-02-04T05:10:18.2525839+03:00",
  "UpdatedBy": 23,
  "DeletedDate": "2026-02-04T05:10:18.2525839+03:00",
  "DeletedBy": 25,
  "IsDeleted": true,
  "FullName": "sample string 27",
  "EmployeeFullname": "sample string 28",
  "ManagerFullname": "sample string 29",
  "Email": "sample string 30",
  "ProfileImage": "sample string 31",
  "LookUpEmployeeRoles": "sample string 32",
  "LookUpEmployeeRolesArabic": "sample string 33",
  "ViolationType": "sample string 34",
  "ViolationTypeArabic": "sample string 35",
  "Position": "sample string 36",
  "LookUpStatus": "sample string 37",
  "LookUpEmployeeRolesId": 38,
  "SecondName": "sample string 39",
  "LookUpViolationType": "sample string 40",
  "ViolationTypeCount": "sample string 41",
  "EmployeesId": 42,
  "Language": "sample string 43",
  "SalonName": "sample string 44",
  "CreatedDateStr": "04-Feb-2026 05:10 AM",
  "UpdatedDateStr": "04-Feb-2026 05:10 AM",
  "DeletedDateStr": "04-Feb-2026 05:10 AM"
}

text/xml

Sample:
<UserViolation 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">21</CreatedBy>
  <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">2026-02-04T05:10:18.2525839+03:00</CreatedDate>
  <DeletedBy xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">25</DeletedBy>
  <DeletedDate xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">2026-02-04T05:10:18.2525839+03:00</DeletedDate>
  <DepartmentId xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">17</DepartmentId>
  <Email xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 30</Email>
  <EmployeeFullname xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 28</EmployeeFullname>
  <EmployeesId xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">42</EmployeesId>
  <FromDate xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 5</FromDate>
  <FullName xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 27</FullName>
  <Id xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">1</Id>
  <IsDeleted xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">true</IsDeleted>
  <IsPdfSend xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">64</IsPdfSend>
  <IsSendWhatsapp xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">11</IsSendWhatsapp>
  <Language xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 43</Language>
  <LookUpEmployeeRoles xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 32</LookUpEmployeeRoles>
  <LookUpEmployeeRolesArabic xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 33</LookUpEmployeeRolesArabic>
  <LookUpEmployeeRolesId xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">38</LookUpEmployeeRolesId>
  <LookUpStatus xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 37</LookUpStatus>
  <LookUpStatusChangedBy xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">19</LookUpStatusChangedBy>
  <LookUpStatusChangedDate xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">2026-02-04T05:10:18.2525839+03:00</LookUpStatusChangedDate>
  <LookUpStatusId xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">16</LookUpStatusId>
  <LookUpViolationType xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 40</LookUpViolationType>
  <LookUpViolationTypeId xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">4</LookUpViolationTypeId>
  <ManagerFullname xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 29</ManagerFullname>
  <NoOfDays xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">8</NoOfDays>
  <Position xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 36</Position>
  <PrimaryPhone xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 13</PrimaryPhone>
  <ProfileImage xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 31</ProfileImage>
  <Reason xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 12</Reason>
  <SalonId xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">3</SalonId>
  <SalonLogoUrl xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 14</SalonLogoUrl>
  <SalonName xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 44</SalonName>
  <SecondName xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 39</SecondName>
  <ToDate xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 7</ToDate>
  <UpdatedBy xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">23</UpdatedBy>
  <UpdatedDate xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">2026-02-04T05:10:18.2525839+03:00</UpdatedDate>
  <UserId xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">2</UserId>
  <ViolationDate xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 6</ViolationDate>
  <ViolationDetails xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 9</ViolationDetails>
  <ViolationPdfPath xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 15</ViolationPdfPath>
  <ViolationType xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 34</ViolationType>
  <ViolationTypeArabic xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 35</ViolationTypeArabic>
  <ViolationTypeCount xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 41</ViolationTypeCount>
</UserViolation>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/xml

Sample:

Sample not available.