POST api/AttendanceAPI/AddTimeRecord

补卡

Request Information

URI Parameters

None.

Body Parameters

补卡参数对象

AddTimeRecordModel
NameDescriptionTypeAdditional information
employee_GID

globally unique identifier

None.

tenant_GID

globally unique identifier

None.

punchTime

date

None.

punchType

integer

None.

remark

string

None.

attachments_GID

string

None.

Request Formats

application/json, text/json

Sample:
{
  "employee_GID": "b176f8ff-289a-41fe-9e3e-a307f1ed850b",
  "tenant_GID": "e8bba736-e4d0-4725-a89f-1ad44f6fe79d",
  "punchTime": "2025-06-21T01:51:05.1415436+08:00",
  "punchType": 4,
  "remark": "sample string 5",
  "attachments_GID": "sample string 6"
}

application/xml, text/xml

Sample:
<AddTimeRecordModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JetHR.OpenAPI.Model">
  <attachments_GID>sample string 6</attachments_GID>
  <employee_GID>b176f8ff-289a-41fe-9e3e-a307f1ed850b</employee_GID>
  <punchTime>2025-06-21T01:51:05.1415436+08:00</punchTime>
  <punchType>4</punchType>
  <remark>sample string 5</remark>
  <tenant_GID>e8bba736-e4d0-4725-a89f-1ad44f6fe79d</tenant_GID>
</AddTimeRecordModel>

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 'AddTimeRecordModel'.

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>