API Directory

This Api allows manager to take an appropriate action (Approve/Reject) on the leave request submitted by an employee.

Request

POST https://domain.peoplestrong.com/api/leave/v1/request/action

Request body

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

{
    "actionType": "string",
    "comments": "string",
    "taskCode": "string",
    "username": "string"
}

Properties

Name Type Description Additional
actionType string Optional
comments string Optional
taskCode string Optional
username string

actor username

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!