API Directory

This Api allows an employee to submit leave request.

Request

POST https://domain.peoplestrong.com/api/leave/v1/apply

Request body

The request body takes a complete Apply Leave resource, containing the following writable properties:

{
    "comments": "string",
    "endDate": "string",
    "leaveDuration": "string",
    "leaveReason": "string",
    "leaveType": "string",
    "startDate": "string",
    "username": "string"
}

Properties

Name Type Description Additional
comments string Optional
endDate string Optional
leaveDuration string Optional
leaveReason string Optional
leaveType string Optional
startDate 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 leave 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!