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 Name | Values Allowed | Default Value | Description |
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 |
duration | String | - | Duration in hh:mm format |
reason | String | - | Description |
startTime | String | - | Start time in hh:mm format |
endTime | String | - | End time in hh:mm format |
dateFormat | String | Organization Date Format | Date Format to be used for date if org date format was not specified |
credited | float | - | 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"
}