Skip to product menu
Skip to main content

Add Compensatory Request

To add a compensatory off request for an employee

Request URL:

https://people.zoho.com/people/api/v2/leavetracker/compensatory/records

Header

Authorization:Zoho-oauthtoken 1000.8cb99dxxxxxxxxxxxxx9be93.9b8xxxxxxxxxxxxxxxf

Method

POST

Scope

ZOHOPEOPLE.leave.CREATE

Request Parameters

Parameter NameValues AllowedDefault ValueDescription
type*FULL_DAY|QUARTER_DAY|HALF_DAY|HOURS-Type of comp off(hour/quarter day/half day/full day)
date*String-Worked date
expiry*String-Expiry date
durationString-Duration in hh:mm format
reasonString-Description
startTimeString-Start time in hh:mm format
endTimeString-End time in hh:mm format
dateFormatStringOrganization Date FormatDate Format to be used for date if org date format was not specified
creditedfloat-Number of days to be credited

Threshold Limit: 300 requests | Lock period: 5 minutes

Threshold Limit - Number of API calls allowed within a minute.
Lock Period - Wait time before consecutive API requests.

Sample Request

Copiedhttps://people.zoho.com/api/v2/leavetracker/compensatory/records

Sample Success Response

Copied{

    "id": "123043348343",

    "message": "Added successfully",

    "status": "success"

}

Sample Error Response

Copied{

    "error": {

        "code": 9001,

        "message": "Sorry. You cannot add record for this user"

    },

    "uri": "/leavetracker/compensatory/records"