POST api/TimeCards

Request Information

URI Parameters

None.

Body Parameters

TimeCardViewModel
NameDescriptionTypeAdditional information
Id

string

None.

CreatedForId

string

Required

ClockInUtc

date

Required

ClockOutUtc

date

None.

Employee

string

None.

EmployeeUrl

string

None.

HoursTotal

decimal number

None.

ClockInMiles

decimal number

None.

ClockOutMiles

decimal number

None.

ClockInLatitude

decimal number

None.

ClockOutLatitude

decimal number

None.

ClockInLongitude

decimal number

None.

ClockOutLongitude

decimal number

None.

LocationLatitude

decimal number

None.

LocationLongitude

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "id": "sample string 1",
  "createdForId": "sample string 2",
  "clockInUtc": "2026-01-11T13:48:29.5436835+00:00",
  "clockOutUtc": "2026-01-11T13:48:29.5436835+00:00",
  "employee": "sample string 3",
  "employeeUrl": "sample string 4",
  "hoursTotal": 1.0,
  "clockInMiles": 1.1,
  "clockOutMiles": 1.1,
  "clockInLatitude": 1.1,
  "clockOutLatitude": 1.1,
  "clockInLongitude": 1.1,
  "clockOutLongitude": 1.1,
  "locationLatitude": 1.0,
  "locationLongitude": 1.0
}

application/xml, text/xml

Sample:
<TimeCardViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Klutchn.Business.ViewModels.TimeCard">
  <ClockInLatitude>1.1</ClockInLatitude>
  <ClockInLongitude>1.1</ClockInLongitude>
  <ClockInMiles>1.1</ClockInMiles>
  <ClockInUtc>2026-01-11T13:48:29.5436835+00:00</ClockInUtc>
  <ClockOutLatitude>1.1</ClockOutLatitude>
  <ClockOutLongitude>1.1</ClockOutLongitude>
  <ClockOutMiles>1.1</ClockOutMiles>
  <ClockOutUtc>2026-01-11T13:48:29.5436835+00:00</ClockOutUtc>
  <CreatedForId>sample string 2</CreatedForId>
  <Employee>sample string 3</Employee>
  <EmployeeUrl>sample string 4</EmployeeUrl>
  <HoursTotal>1</HoursTotal>
  <Id>sample string 1</Id>
  <LocationLatitude>1</LocationLatitude>
  <LocationLongitude>1</LocationLongitude>
</TimeCardViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.