POST api/PunchLog/InsertPunchLog

Request Information

URI Parameters

None.

Body Parameters

tpy_punchlog
NameDescriptionTypeAdditional information
punchlog_code

decimal number

None.

com_code

decimal number

None.

latitude

decimal number

None.

longitude

decimal number

None.

punchtype

string

None.

punchtime

date

None.

address

string

None.

city

string

None.

country

string

None.

currentLocation

string

None.

user_code

decimal number

None.

UserName

string

None.

emp_code

string

None.

Request Formats

application/json, text/json

Sample:
{
  "punchlog_code": 1.0,
  "com_code": 2.0,
  "latitude": 3.0,
  "longitude": 4.0,
  "punchtype": "sample string 5",
  "punchtime": "2025-12-06T12:22:07.8655301+05:30",
  "address": "sample string 7",
  "city": "sample string 8",
  "country": "sample string 9",
  "currentLocation": "sample string 10",
  "user_code": 1.0,
  "UserName": "sample string 11",
  "emp_code": "sample string 12"
}

application/xml, text/xml

Sample:
<tpy_punchlog xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SpotEZ.Data.DAL">
  <UserName>sample string 11</UserName>
  <address>sample string 7</address>
  <city>sample string 8</city>
  <com_code>2</com_code>
  <country>sample string 9</country>
  <currentLocation>sample string 10</currentLocation>
  <emp_code>sample string 12</emp_code>
  <latitude>3</latitude>
  <longitude>4</longitude>
  <punchlog_code>1</punchlog_code>
  <punchtime>2025-12-06T12:22:07.8655301+05:30</punchtime>
  <punchtype>sample string 5</punchtype>
  <user_code>1</user_code>
</tpy_punchlog>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.