Skip to main content

Edit Compensatory Request

To edit an employee's compensatory-off request

Request URL:

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

Header

Authorization:Zoho-oauthtoken 1000.8cb99dxxxxxxxxxxxxx9be93.9b8xxxxxxxxxxxxxxxf

Method

PUT

Scope

ZOHOPEOPLE.leave.UPDATE

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/123043348343

Sample Success Response

Copied   "id": "123043348343",

    "message": "Added successfully",

    "status": "success"

}

Sample Error Response

Copied{

    "error": {

        "code": 9001,

        "message": "Sorry. You are not allowed to do this operation"

    },

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

}