getLeaveAttributes

Background

This REST API is meant to provide details of the leave policy/workweek schemes/holiday schemes.

API Details

Request

Below are the endpoints for this API based on which UpRaise app you are using -

If you are looking for details only for Schemes/Workweek/leave policies. use the below endpoints accordingly -

 


Sample JSON response

{ "startAt": 0, "maxResults": 5, "total": 3, "results": [ { "id": 311, "name": "Default Holiday Scheme", "description": "This is default holiday scheme created at the time of installation.", "type": "Holiday policy", "isDefault": false }, { "id": 372, "name": "Default Leave Policy", "description": "This is default leave policy created at the time of installation.", "type": "Leave policy", "renewsOn": "19 December", "isDefault": false }, { "id": 305, "name": "Default Workweek", "description": "This is default workweek scheme created at the time of installation.", "type": "Work week policy", "isDefault": false } ] }

Response parameters

Parent

Parameter

Type

Description

Possible values

Parent

Parameter

Type

Description

Possible values

 

startAt

numeric

Page number whose results are returned in the response.

0, 1, 2, 3, etc.

 

maxResults

 

This will show the max number of results on any given page.

3

 

total

numeric

This will indicate how many results in total exist for the given search.

Any number

 

results

Object

This object contains all the results of the teams retrieved from this API

 

 

id

number

Policy/Scheme/workweek id in UpRaise

311, 234, 98, 100

 

name

string

Name of the Policy/Scheme/workweek in UpRaise

India office leave policy. scheme or workweek

 

description

string

Description of Policy/Scheme/workweek in UpRaise

Any description related to the policy

 

type

string

Type of Policy/Scheme/workweek in UpRaise

  • Holiday policy

  • Leave policy

  • Work week policy

 

isDefault

string

True or false based on whether the policy/scheme/workweek is default

  • True

  • False

 

renewsOn

string

Renewal date of leave policy. This is applicable only for leave policy.

  • 19 December

  • 20 January