POST api/v2/Service/WorkOrders/SubmitTimeEntry
Submits a labor time entry for a Technician.
Request Information
URI Parameters
None.
Body Parameters
WorkOrderTimeEntry| Name | Description | Type | Additional information |
|---|---|---|---|
| TechId |
Required: The Tech Id that is submitting the entry |
string |
None. |
| WorkOrderId |
Required: The Work Order Id your are submitting Time for. |
string |
None. |
| OpCode |
Required: The Specific Operation on the Work Order you are submitting time for. |
string |
None. |
| Date |
Required: Date of the time entry. MM/DD/YYYY |
string |
None. |
| StartTime |
Required to Start: Time work was started. 24 hour time HH:MM |
string |
None. |
| StopTime |
Required to Stop: Time work was stopped. 24 hour time HH:MM |
string |
None. |
| IsApproved |
Optional: Is this time entry approved? Default is False. |
boolean |
None. |
| Comments |
Comments to add to the time entry. |
string |
None. |
| TimeEntryUId |
Read only: The TimeEntryUID of this entry. |
string |
None. |
Request Formats
application/json, text/json
{
"TechId": "sample string 1",
"WorkOrderId": "sample string 2",
"OpCode": "sample string 3",
"Date": "sample string 4",
"StartTime": "sample string 5",
"StopTime": "sample string 6",
"IsApproved": true,
"Comments": "sample string 7",
"TimeEntryUId": "sample string 8"
}
application/xml, text/xml
<WorkOrderTimeEntry xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/com.dockmaster.lib.models"> <Comments>sample string 7</Comments> <Date>sample string 4</Date> <IsApproved>true</IsApproved> <OpCode>sample string 3</OpCode> <StartTime>sample string 5</StartTime> <StopTime>sample string 6</StopTime> <TechId>sample string 1</TechId> <TimeEntryUId>sample string 8</TimeEntryUId> <WorkOrderId>sample string 2</WorkOrderId> </WorkOrderTimeEntry>
Response Information
Resource Description
SubmitTimeEntryResult| Name | Description | Type | Additional information |
|---|---|---|---|
| TimeCardId |
The Id of the time card for this submission |
string |
None. |
| TimeEntryUId |
The Id of the specific time entry on the time card. |
string |
None. |
| Result |
Any result message from adding this time entry. |
string |
None. |
Response Formats
application/json, text/json
{
"TimeCardId": "sample string 1",
"TimeEntryUId": "sample string 2",
"Result": "sample string 3"
}
application/xml, text/xml
<SubmitTimeEntryResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/com.dockmaster.lib.models"> <Result>sample string 3</Result> <TimeCardId>sample string 1</TimeCardId> <TimeEntryUId>sample string 2</TimeEntryUId> </SubmitTimeEntryResult>