POST api/Payroll/InsertShift?isOpen={isOpen}&userId={userId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
isOpen

boolean

Required

userId

integer

Required

Body Parameters

ShiftModel
NameDescriptionTypeAdditional information
ShiftID

integer

None.

ShiftTitle

string

None.

FromTime

date

None.

ToTime

date

None.

isOverLab

boolean

None.

FromBeforeMin

integer

None.

FromAfterMin

integer

None.

ToBeforeMin

integer

None.

ToAfterMin

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ShiftID": 1,
  "ShiftTitle": "sample string 2",
  "FromTime": "2025-07-04T18:22:23.7252649+05:00",
  "ToTime": "2025-07-04T18:22:23.7252649+05:00",
  "isOverLab": true,
  "FromBeforeMin": 6,
  "FromAfterMin": 7,
  "ToBeforeMin": 8,
  "ToAfterMin": 9
}

application/xml, text/xml

Sample:
<ShiftModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ultrabiz_ERP_API.Models.Payroll">
  <FromAfterMin>7</FromAfterMin>
  <FromBeforeMin>6</FromBeforeMin>
  <FromTime>2025-07-04T18:22:23.7252649+05:00</FromTime>
  <ShiftID>1</ShiftID>
  <ShiftTitle>sample string 2</ShiftTitle>
  <ToAfterMin>9</ToAfterMin>
  <ToBeforeMin>8</ToBeforeMin>
  <ToTime>2025-07-04T18:22:23.7252649+05:00</ToTime>
  <isOverLab>true</isOverLab>
</ShiftModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.