POST api/userLeave/UserLeave_Upsert
Request Information
URI Parameters
None.
Body Parameters
UserLeave| Name | Description | Type | Additional 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": "2026-02-04T05:10:41.2319875+03:00",
"LookUpStatusChangedBy": 11,
"CreatedDate": "2026-02-04T05:10:41.2319875+03:00",
"CreatedBy": 13,
"UpdatedDate": "2026-02-04T05:10:41.2319875+03:00",
"UpdatedBy": 15,
"DeletedDate": "2026-02-04T05:10:41.2319875+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": "04-Feb-2026 05:10 AM",
"UpdatedDateStr": "04-Feb-2026 05:10 AM",
"DeletedDateStr": "04-Feb-2026 05:10 AM"
}
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">2026-02-04T05:10:41.2319875+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">2026-02-04T05:10:41.2319875+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">2026-02-04T05:10:41.2319875+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">2026-02-04T05:10:41.2319875+03:00</UpdatedDate> <UserId xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">2</UserId> </UserLeave>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, text/xml
Sample:
Sample not available.