API Directory

This Api allows an employee to mark his/her attendance by registering his/her punch details.

Request

POST https://domain.peoplestrong.com/api/attendance/v1/punch

Request body

The request body takes a complete Punch Input resource, containing the following writable properties:

{
    "latitudeCoordinate": "number",
    "location": "string",
    "longitudeCoordinate": "number",
    "punchDate": "string",
    "punchTime": "string",
    "username": "string"
}

Properties

Name Type Description Additional
latitudeCoordinate number Optional
location string Optional
longitudeCoordinate number Optional
punchDate string Optional
punchTime string Optional
username string Optional

Authorisation

This request requires the use of one of following authorisation methods: API key OAuth2.

For OAuth 2 authorisation, the following scopes are required:

Scope Description
read question

Response

The following HTTP status codes may be returned, optionally with a response resource.

Status code Description Resource
200 OK

successful operation

400 Bad Request

Bad Request

404 Not Found

Not Found

429

API rate limit exceeded

500 Internal Server Error

Service Unavailable

default

successful operation


Explore this API

body

Refers to punch transfer object

Request Content-Type
Response Content-Type

Choose an authorisation method:

API key API key to be used for request
Access Token Access token to be used for request
Try it out!