Cancel Leave API

Purpose:

This API will cancel the leave record using a Record ID

Request URL:

https://people.zoho.com/api/v2/leavetracker/leaves/records/cancel/<record-id>

Method:

PATCH

Header:

Authorization: Zoho-oauthtoken 1000.8cb99dxxxxxxxx9be93.9b8xxxxxxf

Request Parameters:

NameData TypeDescriptionExample
reason (optional)StringReason for canceling the leave
Default value: -
Event was postponed due to weather

 Threshold Limit:  30 requests | Lock period: 2 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/leaves/records/cancel/413124000068132003?reason=Rescheduling my leave

Header

CopiedAuthorization:Zoho-oauthtoken 1000.8cb99dxxxxxxxxxxxxx9be93.9b8xxxxxxxxxxxxxxxf

Sampe Response

Copied { 
"message": "Leave Cancelled", 
"status": "success" 
}