POST api/Employees/SubmitTimesheet
Request Information
URI Parameters
None.
Body Parameters
Collection of TimesheetParamsName | Description | Type | Additional information |
---|---|---|---|
LocalID | integer |
None. |
|
Employee | integer |
None. |
|
StartTime | string |
None. |
|
EndTime | string |
None. |
|
EntryDate | string |
None. |
|
Hours | decimal number |
None. |
|
ProjectID | integer |
None. |
|
PhaseID | integer |
None. |
|
DepartmentID | integer |
None. |
|
OperationID | integer |
None. |
|
TaskID | integer |
None. |
Request Formats
application/json, text/json
Sample:
[ { "LocalID": 1, "Employee": 2, "StartTime": "sample string 3", "EndTime": "sample string 4", "EntryDate": "sample string 5", "Hours": 6.1, "ProjectID": 7, "PhaseID": 8, "DepartmentID": 9, "OperationID": 10, "TaskID": 11 }, { "LocalID": 1, "Employee": 2, "StartTime": "sample string 3", "EndTime": "sample string 4", "EntryDate": "sample string 5", "Hours": 6.1, "ProjectID": 7, "PhaseID": 8, "DepartmentID": 9, "OperationID": 10, "TaskID": 11 } ]
application/xml, text/xml
Sample:
<ArrayOfTimesheetParams xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CrowsNest.Api"> <TimesheetParams> <DepartmentID>9</DepartmentID> <Employee>2</Employee> <EndTime>sample string 4</EndTime> <EntryDate>sample string 5</EntryDate> <Hours>6.1</Hours> <LocalID>1</LocalID> <OperationID>10</OperationID> <PhaseID>8</PhaseID> <ProjectID>7</ProjectID> <StartTime>sample string 3</StartTime> <TaskID>11</TaskID> </TimesheetParams> <TimesheetParams> <DepartmentID>9</DepartmentID> <Employee>2</Employee> <EndTime>sample string 4</EndTime> <EntryDate>sample string 5</EntryDate> <Hours>6.1</Hours> <LocalID>1</LocalID> <OperationID>10</OperationID> <PhaseID>8</PhaseID> <ProjectID>7</ProjectID> <StartTime>sample string 3</StartTime> <TaskID>11</TaskID> </TimesheetParams> </ArrayOfTimesheetParams>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Collection of TimesheetResponseName | Description | Type | Additional information |
---|---|---|---|
LocalID | integer |
None. |
|
ID | integer |
None. |
Response Formats
application/json, text/json
Sample:
[ { "LocalID": 1, "ID": 2 }, { "LocalID": 1, "ID": 2 } ]
application/xml, text/xml
Sample:
<ArrayOfTimesheetResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CrowsNest.Api"> <TimesheetResponse> <ID>2</ID> <LocalID>1</LocalID> </TimesheetResponse> <TimesheetResponse> <ID>2</ID> <LocalID>1</LocalID> </TimesheetResponse> </ArrayOfTimesheetResponse>