POST api/AttendanceAndTimesheet/InsertUserAttandence
Request Information
URI Parameters
None.
Body Parameters
insertAttendanceName | Description | Type | Additional information |
---|---|---|---|
UserId | integer |
None. |
|
year | integer |
None. |
|
week | integer |
None. |
|
language | string |
None. |
|
worklocation | string |
None. |
|
userfullname | string |
None. |
|
attendancedate | string |
None. |
|
intime | string |
None. |
|
outtime | string |
None. |
|
workHours | decimal number |
None. |
|
NightAllowance | boolean |
None. |
|
MealAllowance | boolean |
None. |
|
TravelAllowance | boolean |
None. |
|
SpecialAllowance | boolean |
None. |
|
Token | string |
None. |
|
DataSource | string |
None. |
|
DataSourceType | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "UserId": 1, "year": 2, "week": 3, "language": "sample string 4", "worklocation": "sample string 5", "userfullname": "sample string 6", "attendancedate": "sample string 7", "intime": "sample string 8", "outtime": "sample string 9", "workHours": 10.1, "NightAllowance": true, "MealAllowance": true, "TravelAllowance": true, "SpecialAllowance": true, "Token": "sample string 15", "DataSource": "sample string 16", "DataSourceType": "sample string 17" }
text/html
Sample:
{"UserId":1,"year":2,"week":3,"language":"sample string 4","worklocation":"sample string 5","userfullname":"sample string 6","attendancedate":"sample string 7","intime":"sample string 8","outtime":"sample string 9","workHours":10.1,"NightAllowance":true,"MealAllowance":true,"TravelAllowance":true,"SpecialAllowance":true,"Token":"sample string 15","DataSource":"sample string 16","DataSourceType":"sample string 17"}
application/xml, text/xml
Sample:
<AttendanceAndTimesheetController.insertAttendance xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HR2Eazy_WebApi.Controllers"> <DataSource>sample string 16</DataSource> <DataSourceType>sample string 17</DataSourceType> <MealAllowance>true</MealAllowance> <NightAllowance>true</NightAllowance> <SpecialAllowance>true</SpecialAllowance> <Token>sample string 15</Token> <TravelAllowance>true</TravelAllowance> <UserId>1</UserId> <attendancedate>sample string 7</attendancedate> <intime>sample string 8</intime> <language>sample string 4</language> <outtime>sample string 9</outtime> <userfullname>sample string 6</userfullname> <week>3</week> <workHours>10.1</workHours> <worklocation>sample string 5</worklocation> <year>2</year> </AttendanceAndTimesheetController.insertAttendance>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
Dictionary of Object [key] and Object [value]Response Formats
application/json, text/json, text/html
Sample:
{"System.Object":{},"System.Object":{}}
application/xml, text/xml
Sample:
<ArrayOfKeyValueOfanyTypeanyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <KeyValueOfanyTypeanyType> <Key /> <Value /> </KeyValueOfanyTypeanyType> <KeyValueOfanyTypeanyType> <Key /> <Value /> </KeyValueOfanyTypeanyType> </ArrayOfKeyValueOfanyTypeanyType>