POST api/Shift/AddShift

Request Information

URI Parameters

None.

Body Parameters

RequestAddShift
NameDescriptionTypeAdditional information
userid

integer

None.

shiftid

integer

None.

shift

string

None.

shiftAr

string

None.

location

integer

None.

company

integer

None.

effectivefrom

string

None.

from

time interval

None.

to

time interval

None.

shiftmargin

string

None.

shiftallowance

string

None.

marginstarthr

integer

None.

marginstartmin

integer

None.

marginendhr

integer

None.

marginendmin

integer

None.

applicablefor

Collection of string

None.

rate

decimal number

None.

earlyhrs

time interval

None.

earlyfridayhrs

time interval

None.

tofriday

time interval

None.

EffectiveTo

string

None.

Weekend1

string

None.

Weekend2

string

None.

function

string

None.

Request Formats

application/json, text/json

Sample:
{
  "function": "sample string 1",
  "userid": 1,
  "shiftid": 2,
  "shift": "sample string 3",
  "shiftAr": "sample string 4",
  "location": 5,
  "company": 6,
  "effectivefrom": "sample string 7",
  "from": "00:00:00.1234567",
  "to": "00:00:00.1234567",
  "shiftmargin": "sample string 10",
  "shiftallowance": "sample string 11",
  "marginstarthr": 1,
  "marginstartmin": 1,
  "marginendhr": 1,
  "marginendmin": 1,
  "applicablefor": [
    "sample string 1",
    "sample string 2"
  ],
  "rate": 1.0,
  "earlyhrs": "00:00:00.1234567",
  "earlyfridayhrs": "00:00:00.1234567",
  "tofriday": "00:00:00.1234567",
  "EffectiveTo": "sample string 13",
  "Weekend1": "sample string 14",
  "Weekend2": "sample string 15"
}

application/xml, text/xml

Sample:
<RequestAddShift xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RRCDR_Attendance_API.Helpers.Custom">
  <EffectiveTo>sample string 13</EffectiveTo>
  <Weekend1>sample string 14</Weekend1>
  <Weekend2>sample string 15</Weekend2>
  <applicablefor xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </applicablefor>
  <company>6</company>
  <earlyfridayhrs>PT0.1234567S</earlyfridayhrs>
  <earlyhrs>PT0.1234567S</earlyhrs>
  <effectivefrom>sample string 7</effectivefrom>
  <from>PT0.1234567S</from>
  <function>sample string 1</function>
  <location>5</location>
  <marginendhr>1</marginendhr>
  <marginendmin>1</marginendmin>
  <marginstarthr>1</marginstarthr>
  <marginstartmin>1</marginstartmin>
  <rate>1</rate>
  <shift>sample string 3</shift>
  <shiftAr>sample string 4</shiftAr>
  <shiftallowance>sample string 11</shiftallowance>
  <shiftid>2</shiftid>
  <shiftmargin>sample string 10</shiftmargin>
  <to>PT0.1234567S</to>
  <tofriday>PT0.1234567S</tofriday>
  <userid>1</userid>
</RequestAddShift>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Object

None.

Response Formats

application/json, text/json

Sample:
{}

application/xml, text/xml

Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />