POST api/AttendanceAPI/AddTimeRecordModify

修改考勤记录方法

Request Information

URI Parameters

None.

Body Parameters

AttTimeRecordModify
NameDescriptionTypeAdditional information
GID

globally unique identifier

None.

AttendanceGroup_GID

globally unique identifier

None.

Employee_GID

globally unique identifier

None.

NewPunchTime

date

None.

OldPunchTime

date

None.

NewPunchLocation

string

None.

OldPunchLocation

string

None.

PunchInOutType

integer

None.

HRModifyRemark

string

None.

attachmentList

string

None.

Request Formats

application/json, text/json

Sample:
{
  "GID": "8214f481-b9d0-4b8a-910e-4450dcc7a256",
  "AttendanceGroup_GID": "bf1fc929-5bf8-427f-bf92-cbd8f0f93274",
  "Employee_GID": "d2975059-f116-4bbc-91c4-93d813e7c67e",
  "NewPunchTime": "2025-05-04T15:07:15.4876198+08:00",
  "OldPunchTime": "2025-05-04T15:07:15.4876198+08:00",
  "NewPunchLocation": "sample string 4",
  "OldPunchLocation": "sample string 5",
  "PunchInOutType": 1,
  "HRModifyRemark": "sample string 6",
  "attachmentList": "sample string 7"
}

application/xml, text/xml

Sample:
<AttTimeRecordModify xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JetHR.Attendance.Model">
  <AttendanceGroup_GID>bf1fc929-5bf8-427f-bf92-cbd8f0f93274</AttendanceGroup_GID>
  <Employee_GID>d2975059-f116-4bbc-91c4-93d813e7c67e</Employee_GID>
  <GID>8214f481-b9d0-4b8a-910e-4450dcc7a256</GID>
  <HRModifyRemark>sample string 6</HRModifyRemark>
  <NewPunchLocation>sample string 4</NewPunchLocation>
  <NewPunchTime>2025-05-04T15:07:15.4876198+08:00</NewPunchTime>
  <OldPunchLocation>sample string 5</OldPunchLocation>
  <OldPunchTime>2025-05-04T15:07:15.4876198+08:00</OldPunchTime>
  <PunchInOutType>1</PunchInOutType>
  <attachmentList>sample string 7</attachmentList>
</AttTimeRecordModify>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'AttTimeRecordModify'.

Response Information

Resource Description

修改考勤记录方法

string

Response Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>