POST api/WorkOrderTime

Save Work Order Time

Request Information

URI Parameters

None.

Body Parameters

WorkOrderTimeSaveRequestModel
NameDescriptionTypeAdditional information
AutoServiceMasterID

integer

Required

AssignTo

integer

Required

HourlyRate

decimal number

Required

IsCostAddtoTotalCost

boolean

None.

StartDate

string

Required

StartTime

string

Required

DurationHour

integer

None.

DurationMin

integer

Required

IsTimeAddedtoTotalTime

boolean

None.

TimeCategoryID

integer

Required

TimeSheetID

integer

None.

Request Formats

application/json, text/json, text/plain, text/html

Sample:
{
  "autoServiceMasterID": 1,
  "assignTo": 2,
  "hourlyRate": 3.0,
  "isCostAddtoTotalCost": true,
  "startDate": "sample string 5",
  "startTime": "sample string 6",
  "durationHour": 7,
  "durationMin": 8,
  "isTimeAddedtoTotalTime": true,
  "timeCategoryID": 10,
  "timeSheetID": 1
}

application/xml, text/xml

Sample:
<WorkOrderTimeSaveRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMMS_V2.Core.RequestModel">
  <AssignTo>2</AssignTo>
  <AutoServiceMasterID>1</AutoServiceMasterID>
  <DurationHour>7</DurationHour>
  <DurationMin>8</DurationMin>
  <HourlyRate>3</HourlyRate>
  <IsCostAddtoTotalCost>true</IsCostAddtoTotalCost>
  <IsTimeAddedtoTotalTime>true</IsTimeAddedtoTotalTime>
  <StartDate>sample string 5</StartDate>
  <StartTime>sample string 6</StartTime>
  <TimeCategoryID>10</TimeCategoryID>
  <TimeSheetID>1</TimeSheetID>
</WorkOrderTimeSaveRequestModel>

multipart/form-data

Sample:
<WorkOrderTimeSaveRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMMS_V2.Core.RequestModel"><AssignTo>2</AssignTo><AutoServiceMasterID>1</AutoServiceMasterID><DurationHour>7</DurationHour><DurationMin>8</DurationMin><HourlyRate>3</HourlyRate><IsCostAddtoTotalCost>true</IsCostAddtoTotalCost><IsTimeAddedtoTotalTime>true</IsTimeAddedtoTotalTime><StartDate>sample string 5</StartDate><StartTime>sample string 6</StartTime><TimeCategoryID>10</TimeCategoryID><TimeSheetID>1</TimeSheetID></WorkOrderTimeSaveRequestModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

CommonResponseDataModel
NameDescriptionTypeAdditional information
ReturnID

integer

Required

Message

string

Required

Successful

boolean

Required

Code

integer

None.

TotalRecord

integer

None.

Response Formats

application/json, text/json, text/plain, text/html

Sample:
{
  "returnID": 1,
  "message": "sample string 2",
  "successful": true,
  "code": 4,
  "totalRecord": 5
}

application/xml, text/xml

Sample:
<CommonResponseDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">
  <Code>4</Code>
  <Message>sample string 2</Message>
  <ReturnID>1</ReturnID>
  <Successful>true</Successful>
  <TotalRecord>5</TotalRecord>
</CommonResponseDataModel>

multipart/form-data

Sample:
<CommonResponseDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel"><Code>4</Code><Message>sample string 2</Message><ReturnID>1</ReturnID><Successful>true</Successful><TotalRecord>5</TotalRecord></CommonResponseDataModel>