Create Leave

Link: {Base_Url}/api/leave/Create

Method Type: POST

Content Type: Application/Json

Description: Create list of approved vacations by username (Max count 10 in List).

Request object:

FieldRequiredTypeDescription


username


Yes


String


 Username of the user in Availo system


dateFrom


Yes


Datetime


Vacation Start Date


dateTo


Yes


Datetime


Vacation End Date


typeID

                                    No


  Int


            Vacation Type Id
          Default value = 12
** Please find the values in the image below

FromTime


No


Datetime

Vacation start time ex.“FromTime”: “12:06:00”,

ToTime


No


Datetime

Vacation end time ex.“ToTime”: “13:06:00”,


notes


                  No


          String


            Vacation Notes

Type Id Values:

Sample Request:

Sample request(1) : 

Sample request (2)

Response object:


Field

Type

Description
statusInt
True 🡪 Added successfully 
False 🡪 Error  
data
List of Long Int

The leaves Id’s
**(return if valid leaves)
message
String

If error will return a message

Sample Response:

A new generation smart attendance system which provides you highly efficient way of managing employee attendance

Quick Links

Contact Us

One of T2 Products
2022 All Rights Reserved