POST api/Timesheet/EmployeeGPSTracking

Save TimeSheet With GPS

Request Information

URI Parameters

None.

Body Parameters

EmployeeGPSTrackingRequestModel
NameDescriptionTypeAdditional information
APIKey

string

None.

UserID

integer

Required

BatteryPercentage

decimal number

None.

GPSLatitude

decimal number

None.

GPSLongitude

decimal number

None.

GPSLocationAddress

string

None.

DeviceType

string

None.

IsGPSEnable

boolean

None.

Request Formats

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

Sample:
{
  "apiKey": "sample string 1",
  "userID": 2,
  "batteryPercentage": 3.0,
  "gpsLatitude": 4.0,
  "gpsLongitude": 5.0,
  "gpsLocationAddress": "sample string 6",
  "deviceType": "sample string 7",
  "isGPSEnable": true
}

application/xml, text/xml

Sample:
<EmployeeGPSTrackingRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMMS_V2.Core.RequestModel">
  <APIKey>sample string 1</APIKey>
  <BatteryPercentage>3</BatteryPercentage>
  <DeviceType>sample string 7</DeviceType>
  <GPSLatitude>4</GPSLatitude>
  <GPSLocationAddress>sample string 6</GPSLocationAddress>
  <GPSLongitude>5</GPSLongitude>
  <IsGPSEnable>true</IsGPSEnable>
  <UserID>2</UserID>
</EmployeeGPSTrackingRequestModel>

multipart/form-data

Sample:
<EmployeeGPSTrackingRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMMS_V2.Core.RequestModel"><APIKey>sample string 1</APIKey><BatteryPercentage>3</BatteryPercentage><DeviceType>sample string 7</DeviceType><GPSLatitude>4</GPSLatitude><GPSLocationAddress>sample string 6</GPSLocationAddress><GPSLongitude>5</GPSLongitude><IsGPSEnable>true</IsGPSEnable><UserID>2</UserID></EmployeeGPSTrackingRequestModel>

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>