# Time Punch

## Submit a time punch from third party software or hardware to Runtime HRMS.

<mark style="color:green;">`POST`</mark> `https://[data_center]/tpi/attendance/time-punch`

The below parameters must be passed as a JSON object. The Content-Type must be set to `application/json`.

#### Request Body

| Name                                             | Type   | Description                                               |
| ------------------------------------------------ | ------ | --------------------------------------------------------- |
| employee\_code<mark style="color:red;">\*</mark> | string | Employee Code                                             |
| date\_time<mark style="color:red;">\*</mark>     | string | Date & Time formatted in ISO for e.g. 2023-06-15 18:10:00 |

{% tabs %}
{% tab title="200: OK If the API call is successful, the server will return a JSON message as shown below" %}

```json
{
    "success": true,
    "message": "ok"
}
```

{% endtab %}

{% tab title="400: Bad Request " %}

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developer.runtimehrms.com/attendance/time-punch.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
