Delete Timesheets API
This API is used to delete timesheets.
Request URL:
https://people.zoho.com/people/api/timetracker/deletetimesheet?timesheetId=<timesheetId>
Header:
Authorization: Zoho-oauthtoken 1000.8cb99dxxxxxxxx9be93.9b8xxxxxxf
Scope:
ZOHOPEOPLE.timetracker.ALL
OR
ZOHOPEOPLE.timetracker.DELETE
Possible Operation Types:
ALL - Complete access to data
DELETE - Only to delete data
Request parameter:
Parameter | Values Allowed | Default Value | Description |
*timesheetId | <Timesheet Ids> | <Mandatory> | Specify the timesheet Ids (separated by commas). Maximum number of Ids allowed is 1000. |
Error Codes and Messages :
Error Code | Error Message |
9000 | Permission denied |
9005 | Time Tracker tab is disabled |
9009 | Payment has already been processed for all time logs/timesheets until <pay period processing date>. Hence, you cannot perform this action |
Success Response Format
{
"response": {
"result": {
"timesheetId": [
<Array of deleted timesheet Ids>
],
"skippedInfo": [ (NOTE: This key will be available only if any one of the timesheets is not deleted)
{
"timesheetId": [
<Array of timesheet Ids which are not deleted>
],
"code": <Error Code>,
"message": <Error Message>
},.....
]
},
"message": "Data deleted successfully",
"uri": "/api/timetracker/deletetimesheet",
"status": 0
}
}
Error Response Format
{
"response": {
"message": "Error in deleting data",
"uri": "/api/timetracker/deletetimesheet",
"errors": [
{
"code": <Error Code>,
"message": <Error Message>
}
],
"status": 1
}
}
Threshold Limit: 20 requests | Lock period: 5 minutes
Threshold Limit - Number of API calls allowed within a minute.
Lock Period - Wait time before consecutive API requests.