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:

ParameterValues AllowedDefault ValueDescription
*jobScheduleId< jobScheduleId><Mandatory>Specify the job schedule id to be deleted
isDeleteRepeat<true|false>falseIf true, the repeat series will be deleted based on delRepeatType. If false, then only the mentioned schedule will be deleted
delRepeatType<1|2>1This will be considered only if isDeleteRepeat is true. 
  • 1 - Delete current and the following schedules in the repeat series
  • 2 - Delete all the schedules in the repeat series (allowed only for admin/data admin)

Error Codes and Messages :

Error CodeError Message
9000Permission denied
9002No <parameter_name> parameter specified
9012You 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>