POST api/userLeave/UserLeave_Upsert

Request Information

URI Parameters

None.

Body Parameters

UserLeave
NameDescriptionTypeAdditional information
Id

integer

None.

UserId

integer

None.

SalonId

integer

None.

LookUpLeaveTypeId

integer

None.

FromDate

string

None.

ToDate

string

None.

NoOfDays

integer

None.

Reason

string

None.

LookUpStatusId

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.

ProfileImage

string

None.

LookUpEmployeeRoles

string

None.

LeaveType

string

None.

LookUpStatus

string

None.

LookUpEmployeeRolesId

integer

None.

SecondName

string

None.

LookUpLeaveType

string

None.

LeaveTypeCount

string

None.

EmployeesId

integer

None.

Language

string

None.

CreatedDateStr

string

None.

UpdatedDateStr

string

None.

DeletedDateStr

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "UserId": 2,
  "SalonId": 3,
  "LookUpLeaveTypeId": 4,
  "FromDate": "sample string 5",
  "ToDate": "sample string 6",
  "NoOfDays": 7,
  "Reason": "sample string 8",
  "LookUpStatusId": 9,
  "LookUpStatusChangedDate": "2025-07-08T19:10:22.0357565+03:00",
  "LookUpStatusChangedBy": 11,
  "CreatedDate": "2025-07-08T19:10:22.0357565+03:00",
  "CreatedBy": 13,
  "UpdatedDate": "2025-07-08T19:10:22.0357565+03:00",
  "UpdatedBy": 15,
  "DeletedDate": "2025-07-08T19:10:22.0357565+03:00",
  "DeletedBy": 17,
  "IsDeleted": true,
  "FullName": "sample string 19",
  "ProfileImage": "sample string 20",
  "LookUpEmployeeRoles": "sample string 21",
  "LeaveType": "sample string 22",
  "LookUpStatus": "sample string 23",
  "LookUpEmployeeRolesId": 24,
  "SecondName": "sample string 25",
  "LookUpLeaveType": "sample string 26",
  "LeaveTypeCount": "sample string 27",
  "EmployeesId": 28,
  "Language": "sample string 29",
  "CreatedDateStr": "08-Jul-2025 07:10 PM",
  "UpdatedDateStr": "08-Jul-2025 07:10 PM",
  "DeletedDateStr": "08-Jul-2025 07:10 PM"
}

text/xml

Sample:
<UserLeave 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">13</CreatedBy>
  <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">2025-07-08T19:10:22.0357565+03:00</CreatedDate>
  <DeletedBy xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">17</DeletedBy>
  <DeletedDate xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">2025-07-08T19:10:22.0357565+03:00</DeletedDate>
  <EmployeesId xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">28</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 19</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>
  <Language xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 29</Language>
  <LeaveType xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 22</LeaveType>
  <LeaveTypeCount xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 27</LeaveTypeCount>
  <LookUpEmployeeRoles xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 21</LookUpEmployeeRoles>
  <LookUpEmployeeRolesId xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">24</LookUpEmployeeRolesId>
  <LookUpLeaveType xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 26</LookUpLeaveType>
  <LookUpLeaveTypeId xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">4</LookUpLeaveTypeId>
  <LookUpStatus xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 23</LookUpStatus>
  <LookUpStatusChangedBy xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">11</LookUpStatusChangedBy>
  <LookUpStatusChangedDate xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">2025-07-08T19:10:22.0357565+03:00</LookUpStatusChangedDate>
  <LookUpStatusId xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">9</LookUpStatusId>
  <NoOfDays xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">7</NoOfDays>
  <ProfileImage xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 20</ProfileImage>
  <Reason xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 8</Reason>
  <SalonId xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">3</SalonId>
  <SecondName xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 25</SecondName>
  <ToDate xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 6</ToDate>
  <UpdatedBy xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">15</UpdatedBy>
  <UpdatedDate xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">2025-07-08T19:10:22.0357565+03:00</UpdatedDate>
  <UserId xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">2</UserId>
</UserLeave>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/xml

Sample:

Sample not available.