POST api/clock/save

Save clock info of one person and one day

Request Information

URI Parameters

None.

Body Parameters

SaveClockPairBinder
NameDescriptionTypeAdditional information
PersonId

integer

None.

Date

date

None.

ClockOn

ClockItemBinder

None.

ClockOff

ClockItemBinder

None.

Request Formats

application/json, text/json

Sample:
{
  "PersonId": 1,
  "Date": "2024-12-21 14:44:28",
  "ClockOn": {
    "When": "2024-12-21 14:44:28",
    "IsModified": true
  },
  "ClockOff": {
    "When": "2024-12-21 14:44:28",
    "IsModified": true
  }
}

application/xml, text/xml

Sample:
<SaveClockPairBinder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Binding">
  <ClockOff>
    <IsModified>true</IsModified>
    <When>2024-12-21T18:44:28.3137282-08:00</When>
  </ClockOff>
  <ClockOn>
    <IsModified>true</IsModified>
    <When>2024-12-21T18:44:28.3137282-08:00</When>
  </ClockOn>
  <Date>2024-12-21T18:44:28.3137282-08:00</Date>
  <PersonId>1</PersonId>
</SaveClockPairBinder>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Save clock info of one person and one day

API_Data_ClockPair
NameDescriptionTypeAdditional information
Success

boolean

None.

Error

ErrorInfo

None.

Data

ClockPair

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Error": {
    "ErrorCode": 1,
    "ErrorMessage": "sample string 1"
  },
  "Data": {
    "PersonId": 1,
    "ItemDate": "2024-12-21 18:44:28",
    "ClockOn": {
      "When": "2024-12-21 14:44:28",
      "IsModified": true,
      "LastModifiedBy": 3,
      "IsAutoGenerated": false
    },
    "ClockOff": {
      "When": "2024-12-21 14:44:28",
      "IsModified": true,
      "LastModifiedBy": 3,
      "IsAutoGenerated": false
    },
    "LastModifiedTime": "2024-12-21 14:44:28"
  }
}

application/xml, text/xml

Sample:
<API_Data_ClockPair xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Common">
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Binding">
    <d2p1:ClockOff>
      <d2p1:IsModified>true</d2p1:IsModified>
      <d2p1:LastModifiedBy>3</d2p1:LastModifiedBy>
      <d2p1:When>2024-12-21T18:44:28.3293523-08:00</d2p1:When>
    </d2p1:ClockOff>
    <d2p1:ClockOn>
      <d2p1:IsModified>true</d2p1:IsModified>
      <d2p1:LastModifiedBy>3</d2p1:LastModifiedBy>
      <d2p1:When>2024-12-21T18:44:28.3293523-08:00</d2p1:When>
    </d2p1:ClockOn>
    <d2p1:IfOnline>3</d2p1:IfOnline>
    <d2p1:ItemDate>2024-12-21T18:44:28.3293523-08:00</d2p1:ItemDate>
    <d2p1:LastModifiedTime>2024-12-21T18:44:28.3293523-08:00</d2p1:LastModifiedTime>
    <d2p1:PersonId>1</d2p1:PersonId>
  </Data>
  <Error>
    <ErrorCode>1</ErrorCode>
    <ErrorMessage>sample string 1</ErrorMessage>
  </Error>
  <Success>true</Success>
</API_Data_ClockPair>