POST api/userWorkSheet/UserWorkSheet_Upsert

Request Information

URI Parameters

None.

Body Parameters

UserWorkSheet
NameDescriptionTypeAdditional information
Id

integer

None.

UserId

integer

None.

SalonId

integer

None.

LookUpStatusId

integer

None.

LookUpStatusChangedDate

date

None.

LookUpStatusChangedBy

integer

None.

InTime

string

None.

OutTime

string

None.

ExtraTime

string

None.

Break

string

None.

AttendanceDate

string

None.

ShortLeave

string

None.

Productive

string

None.

CreatedDate

date

None.

CreatedBy

integer

None.

UpdatedDate

date

None.

UpdatedBy

integer

None.

FullName

string

None.

ProfileImage

string

None.

SecondName

string

None.

LookUpEmployeeRoles

string

None.

LookUpStatus

string

None.

LookUpEmployeeRolesId

integer

None.

Lateness

string

None.

EarlyDeparture

string

None.

UserSalons

Collection of UserSalons

None.

CreatedDateStr

string

None.

UpdatedDateStr

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "UserId": 2,
  "SalonId": 3,
  "LookUpStatusId": 4,
  "LookUpStatusChangedDate": "2025-07-08T18:55:33.8461806+03:00",
  "LookUpStatusChangedBy": 6,
  "InTime": "sample string 7",
  "OutTime": "sample string 8",
  "ExtraTime": "sample string 9",
  "Break": "sample string 10",
  "AttendanceDate": "sample string 11",
  "ShortLeave": "sample string 12",
  "Productive": "sample string 13",
  "CreatedDate": "2025-07-08T18:55:33.8461806+03:00",
  "CreatedBy": 15,
  "UpdatedDate": "2025-07-08T18:55:33.8461806+03:00",
  "UpdatedBy": 17,
  "FullName": "sample string 18",
  "ProfileImage": "sample string 19",
  "SecondName": "sample string 20",
  "LookUpEmployeeRoles": "sample string 21",
  "LookUpStatus": "sample string 22",
  "LookUpEmployeeRolesId": 23,
  "Lateness": "sample string 24",
  "EarlyDeparture": "sample string 25",
  "UserSalons": [
    {
      "NameOrder": 1,
      "Id": 2,
      "UserId": 3,
      "SalonId": 4,
      "LookUpStatusId": 5,
      "LookUpStatusChangedDate": "2025-07-08T18:55:33.8618186+03:00",
      "LookUpStatusChangedBy": 7,
      "InTime": "sample string 8",
      "OutTime": "sample string 9",
      "ExtraTime": "sample string 10",
      "Break": "sample string 11",
      "AttendanceDate": "sample string 12",
      "ShortLeave": "sample string 13",
      "Productive": "sample string 14",
      "CreatedDate": "2025-07-08T18:55:33.8618186+03:00",
      "CreatedBy": 16,
      "UpdatedDate": "2025-07-08T18:55:33.8618186+03:00",
      "UpdatedBy": 18,
      "FullName": "sample string 19",
      "ProfileImage": "sample string 20",
      "SecondName": "sample string 21",
      "LookUpEmployeeRoles": "sample string 22",
      "LookUpStatus": "sample string 23",
      "LookUpEmployeeRolesId": 24,
      "Salary": 25.0,
      "AchievedPrice": 26.0,
      "SalaryPercentage": 27.0,
      "RemainingAmount": 28.0,
      "MonthlyInstallments": 29.0,
      "TotalAmounts": 30.0,
      "DeductionAmount": 31.0,
      "DeductionReason": "sample string 32",
      "Target": 33,
      "Lateness": "sample string 34",
      "EndDate": "sample string 35",
      "MonthlyInstallment": "sample string 36",
      "TotalAmount": "sample string 37",
      "EarlyDeparture": "sample string 38",
      "CreatedDateStr": "08-Jul-2025 06:55 PM",
      "UpdatedDateStr": "08-Jul-2025 06:55 PM"
    },
    {
      "NameOrder": 1,
      "Id": 2,
      "UserId": 3,
      "SalonId": 4,
      "LookUpStatusId": 5,
      "LookUpStatusChangedDate": "2025-07-08T18:55:33.8618186+03:00",
      "LookUpStatusChangedBy": 7,
      "InTime": "sample string 8",
      "OutTime": "sample string 9",
      "ExtraTime": "sample string 10",
      "Break": "sample string 11",
      "AttendanceDate": "sample string 12",
      "ShortLeave": "sample string 13",
      "Productive": "sample string 14",
      "CreatedDate": "2025-07-08T18:55:33.8618186+03:00",
      "CreatedBy": 16,
      "UpdatedDate": "2025-07-08T18:55:33.8618186+03:00",
      "UpdatedBy": 18,
      "FullName": "sample string 19",
      "ProfileImage": "sample string 20",
      "SecondName": "sample string 21",
      "LookUpEmployeeRoles": "sample string 22",
      "LookUpStatus": "sample string 23",
      "LookUpEmployeeRolesId": 24,
      "Salary": 25.0,
      "AchievedPrice": 26.0,
      "SalaryPercentage": 27.0,
      "RemainingAmount": 28.0,
      "MonthlyInstallments": 29.0,
      "TotalAmounts": 30.0,
      "DeductionAmount": 31.0,
      "DeductionReason": "sample string 32",
      "Target": 33,
      "Lateness": "sample string 34",
      "EndDate": "sample string 35",
      "MonthlyInstallment": "sample string 36",
      "TotalAmount": "sample string 37",
      "EarlyDeparture": "sample string 38",
      "CreatedDateStr": "08-Jul-2025 06:55 PM",
      "UpdatedDateStr": "08-Jul-2025 06:55 PM"
    }
  ],
  "CreatedDateStr": "08-Jul-2025 06:55 PM",
  "UpdatedDateStr": "08-Jul-2025 06:55 PM"
}

text/xml

Sample:
<UserWorkSheet xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.V1">
  <AttendanceDate xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 11</AttendanceDate>
  <Break xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 10</Break>
  <CreatedBy xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">15</CreatedBy>
  <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">2025-07-08T18:55:33.8461806+03:00</CreatedDate>
  <EarlyDeparture xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 25</EarlyDeparture>
  <ExtraTime xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 9</ExtraTime>
  <FullName xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 18</FullName>
  <Id xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">1</Id>
  <InTime xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 7</InTime>
  <Lateness xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 24</Lateness>
  <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">23</LookUpEmployeeRolesId>
  <LookUpStatus xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 22</LookUpStatus>
  <LookUpStatusChangedBy xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">6</LookUpStatusChangedBy>
  <LookUpStatusChangedDate xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">2025-07-08T18:55:33.8461806+03:00</LookUpStatusChangedDate>
  <LookUpStatusId xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">4</LookUpStatusId>
  <OutTime xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 8</OutTime>
  <Productive xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 13</Productive>
  <ProfileImage xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 19</ProfileImage>
  <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 20</SecondName>
  <ShortLeave xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 12</ShortLeave>
  <UpdatedBy xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">17</UpdatedBy>
  <UpdatedDate xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">2025-07-08T18:55:33.8461806+03:00</UpdatedDate>
  <UserId xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">2</UserId>
  <UserSalons xmlns:d2p1="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.V1" xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">
    <d2p1:UserSalons>
      <AchievedPrice>26</AchievedPrice>
      <AttendanceDate>sample string 12</AttendanceDate>
      <Break>sample string 11</Break>
      <CreatedBy>16</CreatedBy>
      <CreatedDate>2025-07-08T18:55:33.8618186+03:00</CreatedDate>
      <DeductionAmount>31</DeductionAmount>
      <DeductionReason>sample string 32</DeductionReason>
      <EarlyDeparture>sample string 38</EarlyDeparture>
      <EndDate>sample string 35</EndDate>
      <ExtraTime>sample string 10</ExtraTime>
      <FullName>sample string 19</FullName>
      <Id>2</Id>
      <InTime>sample string 8</InTime>
      <Lateness>sample string 34</Lateness>
      <LookUpEmployeeRoles>sample string 22</LookUpEmployeeRoles>
      <LookUpEmployeeRolesId>24</LookUpEmployeeRolesId>
      <LookUpStatus>sample string 23</LookUpStatus>
      <LookUpStatusChangedBy>7</LookUpStatusChangedBy>
      <LookUpStatusChangedDate>2025-07-08T18:55:33.8618186+03:00</LookUpStatusChangedDate>
      <LookUpStatusId>5</LookUpStatusId>
      <MonthlyInstallment>sample string 36</MonthlyInstallment>
      <MonthlyInstallments>29</MonthlyInstallments>
      <NameOrder>1</NameOrder>
      <OutTime>sample string 9</OutTime>
      <Productive>sample string 14</Productive>
      <ProfileImage>sample string 20</ProfileImage>
      <RemainingAmount>28</RemainingAmount>
      <Salary>25</Salary>
      <SalaryPercentage>27</SalaryPercentage>
      <SalonId>4</SalonId>
      <SecondName>sample string 21</SecondName>
      <ShortLeave>sample string 13</ShortLeave>
      <Target>33</Target>
      <TotalAmount>sample string 37</TotalAmount>
      <TotalAmounts>30</TotalAmounts>
      <UpdatedBy>18</UpdatedBy>
      <UpdatedDate>2025-07-08T18:55:33.8618186+03:00</UpdatedDate>
      <UserId>3</UserId>
    </d2p1:UserSalons>
    <d2p1:UserSalons>
      <AchievedPrice>26</AchievedPrice>
      <AttendanceDate>sample string 12</AttendanceDate>
      <Break>sample string 11</Break>
      <CreatedBy>16</CreatedBy>
      <CreatedDate>2025-07-08T18:55:33.8618186+03:00</CreatedDate>
      <DeductionAmount>31</DeductionAmount>
      <DeductionReason>sample string 32</DeductionReason>
      <EarlyDeparture>sample string 38</EarlyDeparture>
      <EndDate>sample string 35</EndDate>
      <ExtraTime>sample string 10</ExtraTime>
      <FullName>sample string 19</FullName>
      <Id>2</Id>
      <InTime>sample string 8</InTime>
      <Lateness>sample string 34</Lateness>
      <LookUpEmployeeRoles>sample string 22</LookUpEmployeeRoles>
      <LookUpEmployeeRolesId>24</LookUpEmployeeRolesId>
      <LookUpStatus>sample string 23</LookUpStatus>
      <LookUpStatusChangedBy>7</LookUpStatusChangedBy>
      <LookUpStatusChangedDate>2025-07-08T18:55:33.8618186+03:00</LookUpStatusChangedDate>
      <LookUpStatusId>5</LookUpStatusId>
      <MonthlyInstallment>sample string 36</MonthlyInstallment>
      <MonthlyInstallments>29</MonthlyInstallments>
      <NameOrder>1</NameOrder>
      <OutTime>sample string 9</OutTime>
      <Productive>sample string 14</Productive>
      <ProfileImage>sample string 20</ProfileImage>
      <RemainingAmount>28</RemainingAmount>
      <Salary>25</Salary>
      <SalaryPercentage>27</SalaryPercentage>
      <SalonId>4</SalonId>
      <SecondName>sample string 21</SecondName>
      <ShortLeave>sample string 13</ShortLeave>
      <Target>33</Target>
      <TotalAmount>sample string 37</TotalAmount>
      <TotalAmounts>30</TotalAmounts>
      <UpdatedBy>18</UpdatedBy>
      <UpdatedDate>2025-07-08T18:55:33.8618186+03:00</UpdatedDate>
      <UserId>3</UserId>
    </d2p1:UserSalons>
  </UserSalons>
</UserWorkSheet>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/xml

Sample:

Sample not available.