POST api/WorkorderTimer/FcnWorkOrderTimerWorkFlow

Request Information

URI Parameters

None.

Body Parameters

TimerUpdateRequestModel
NameDescriptionTypeAdditional information
AutoServiceMasterId

integer

Required

Latitude

decimal number

None.

Longitude

decimal number

None.

UserId

integer

None.

WorkOrderStatusID

integer

Required

ApiToken

string

None.

Request Formats

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

Sample:
{
  "autoServiceMasterId": 1,
  "latitude": 1.0,
  "longitude": 1.0,
  "userId": 1,
  "workOrderStatusID": 2,
  "apiToken": "sample string 3"
}

application/xml, text/xml

Sample:
<TimerUpdateRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMMS_V2.Core.RequestModel">
  <ApiToken>sample string 3</ApiToken>
  <AutoServiceMasterId>1</AutoServiceMasterId>
  <Latitude>1</Latitude>
  <Longitude>1</Longitude>
  <UserId>1</UserId>
  <WorkOrderStatusID>2</WorkOrderStatusID>
</TimerUpdateRequestModel>

multipart/form-data

Sample:
<TimerUpdateRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMMS_V2.Core.RequestModel"><ApiToken>sample string 3</ApiToken><AutoServiceMasterId>1</AutoServiceMasterId><Latitude>1</Latitude><Longitude>1</Longitude><UserId>1</UserId><WorkOrderStatusID>2</WorkOrderStatusID></TimerUpdateRequestModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Collection of TimerDataModel
NameDescriptionTypeAdditional information
TimerId

integer

None.

AutoServiceMasterId

integer

Required

UserId

integer

None.

CompanyId

integer

None.

StartStatusId

integer

Required

StartDate

string

Required

StartTime

string

Required

Latitude

decimal number

None.

Longitude

decimal number

None.

StopStatusId

integer

None.

StopDate

string

None.

StopTime

string

None.

StartStatusName

string

None.

StopStatusName

string

None.

HourSpent

string

None.

UserName

string

None.

HourlyRate

decimal number

None.

Response Formats

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

Sample:
[
  {
    "timerId": 1,
    "autoServiceMasterId": 1,
    "userId": 1,
    "companyId": 1,
    "startStatusId": 2,
    "startDate": "sample string 3",
    "startTime": "sample string 4",
    "latitude": 1.0,
    "longitude": 1.0,
    "stopStatusId": 1,
    "stopDate": "sample string 5",
    "stopTime": "sample string 6",
    "startStatusName": "sample string 7",
    "stopStatusName": "sample string 8",
    "hourSpent": "sample string 9",
    "userName": "sample string 10",
    "hourlyRate": 1.0
  },
  {
    "timerId": 1,
    "autoServiceMasterId": 1,
    "userId": 1,
    "companyId": 1,
    "startStatusId": 2,
    "startDate": "sample string 3",
    "startTime": "sample string 4",
    "latitude": 1.0,
    "longitude": 1.0,
    "stopStatusId": 1,
    "stopDate": "sample string 5",
    "stopTime": "sample string 6",
    "startStatusName": "sample string 7",
    "stopStatusName": "sample string 8",
    "hourSpent": "sample string 9",
    "userName": "sample string 10",
    "hourlyRate": 1.0
  }
]

application/xml, text/xml

Sample:
<ArrayOfTimerDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMMS_V2.Core.DataModel">
  <TimerDataModel>
    <AutoServiceMasterId>1</AutoServiceMasterId>
    <CompanyId>1</CompanyId>
    <HourSpent>sample string 9</HourSpent>
    <HourlyRate>1</HourlyRate>
    <Latitude>1</Latitude>
    <Longitude>1</Longitude>
    <StartDate>sample string 3</StartDate>
    <StartStatusId>2</StartStatusId>
    <StartStatusName>sample string 7</StartStatusName>
    <StartTime>sample string 4</StartTime>
    <StopDate>sample string 5</StopDate>
    <StopStatusId>1</StopStatusId>
    <StopStatusName>sample string 8</StopStatusName>
    <StopTime>sample string 6</StopTime>
    <TimerId>1</TimerId>
    <UserId>1</UserId>
    <UserName>sample string 10</UserName>
  </TimerDataModel>
  <TimerDataModel>
    <AutoServiceMasterId>1</AutoServiceMasterId>
    <CompanyId>1</CompanyId>
    <HourSpent>sample string 9</HourSpent>
    <HourlyRate>1</HourlyRate>
    <Latitude>1</Latitude>
    <Longitude>1</Longitude>
    <StartDate>sample string 3</StartDate>
    <StartStatusId>2</StartStatusId>
    <StartStatusName>sample string 7</StartStatusName>
    <StartTime>sample string 4</StartTime>
    <StopDate>sample string 5</StopDate>
    <StopStatusId>1</StopStatusId>
    <StopStatusName>sample string 8</StopStatusName>
    <StopTime>sample string 6</StopTime>
    <TimerId>1</TimerId>
    <UserId>1</UserId>
    <UserName>sample string 10</UserName>
  </TimerDataModel>
</ArrayOfTimerDataModel>

multipart/form-data

Sample:
<ArrayOfTimerDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMMS_V2.Core.DataModel"><TimerDataModel><AutoServiceMasterId>1</AutoServiceMasterId><CompanyId>1</CompanyId><HourSpent>sample string 9</HourSpent><HourlyRate>1</HourlyRate><Latitude>1</Latitude><Longitude>1</Longitude><StartDate>sample string 3</StartDate><StartStatusId>2</StartStatusId><StartStatusName>sample string 7</StartStatusName><StartTime>sample string 4</StartTime><StopDate>sample string 5</StopDate><StopStatusId>1</StopStatusId><StopStatusName>sample string 8</StopStatusName><StopTime>sample string 6</StopTime><TimerId>1</TimerId><UserId>1</UserId><UserName>sample string 10</UserName></TimerDataModel><TimerDataModel><AutoServiceMasterId>1</AutoServiceMasterId><CompanyId>1</CompanyId><HourSpent>sample string 9</HourSpent><HourlyRate>1</HourlyRate><Latitude>1</Latitude><Longitude>1</Longitude><StartDate>sample string 3</StartDate><StartStatusId>2</StartStatusId><StartStatusName>sample string 7</StartStatusName><StartTime>sample string 4</StartTime><StopDate>sample string 5</StopDate><StopStatusId>1</StopStatusId><StopStatusName>sample string 8</StopStatusName><StopTime>sample string 6</StopTime><TimerId>1</TimerId><UserId>1</UserId><UserName>sample string 10</UserName></TimerDataModel></ArrayOfTimerDataModel>