Delete Job Schedule API
This API is used to delete job schedules
Request URL:
https://people.zoho.com/api/timetracker/deleteJobSchedule?jobScheduleId=<jobScheduleId>&isDeleteRepeat=<isDeleteRepeat>&delRepeatType=<delRepeatType>
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 |
*jobScheduleId | < jobScheduleId> | <Mandatory> | Specify the job schedule id to be deleted |
isDeleteRepeat | <true|false> | false | If true, the repeat series will be deleted based on delRepeatType. If false, then only the mentioned schedule will be deleted |
delRepeatType | <1|2> | 1 | This will be considered only if isDeleteRepeat is true.
|
Error Codes and Messages :
Error Code | Error Message |
9000 | Permission denied |
9002 | No <parameter_name> parameter specified |
9012 | You cannot add/edit/publish/delete schedule of past dates. |
Success Response Format
{
"response": {
"result": [
{
"jobScheduleId": <deleted job schedule id>
}
],
"message": "Data deleted successfully",
"uri": "/api/timetracker/deleteJobSchedule",
"status": 0
}
}
Error Response Format
{
"response": {
"message": "Error in deleting data",
"uri": "/api/timetracker/deleteJobSchedule",
"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.
Sample Request
Copiedhttps://people.zoho.com/api/timetracker/deleteJobSchedule?jobScheduleId=28000000201195&
isDeleteRepeat=true&delRepeatType=2
Header
CopiedAuthorization: Zoho-oauthtoken 1000.8cb99dxxxxxxxx9be93.9b8xxxxxxf
Sample Response
Copied{
"response": {
"result": [
{
"jobScheduleId": "469505000000271259"
}
],
"message": "Data deleted successfully",
"uri": "/api/timetracker/deleteJobSchedule",
"status": 0
}
}
Copied<?xml version="1.0" encoding="UTF-8"?>
<response uri="/api/timetracker/deleteJobSchedule">
<status>0</status>
<message>Data deleted successfully</message>
<result>
<jobScheduleId>469505000000271259</jobScheduleId>
</result>
</response>