Publish Job Schedule API
This API is used to publish job schedules.
Request URL:
https://people.zoho.com/api/timetracker/publishJobSchedule?user=<user>&fromDate=<fromDate>&toDate=<toDate>
Header:
Authorization: Zoho-oauthtoken 1000.8cb99dxxxxxxxx9be93.9b8xxxxxxf
Scope:
ZOHOPEOPLE.timetracker.ALL
OR
ZOHOPEOPLE.timetracker.UPDATE
Possible Operation Types:
ALL - Complete access to data
DELETE - Only to delete data
Request parameter:
Parameter | Values Allowed | Default Value | Description |
user | <ERECNO | Email-ID | Employee-ID | all> | <current user> | Specify the user whose job schedules needs to be published. |
*fromDate | <from date in yyyy-MM-dd/company date format> | <Mandatory> | Specify the date from which the job schedule needs to be published. |
*todate | <to date in yyyy-MM-dd/company date format> | <Mandatory> | Specify the date till which the job schedule needs to be published. |
Error Codes and Messages :
Error Code | Error Message |
9001 | Error in publishing job schedules |
9000 | Permission denied |
9002 | No <parameter_name> parameter specified |
9004 | Wrong date format given for <parameter_name> parameter |
9012 | You cannot add/edit/publish/delete schedule of past dates. |
Success Response Format
{
"response": {
"message": "Job Schedules published successfully",
"uri": "/api/timetracker/publishJobSchedule",
"status": 0
}
}
Error Response Format
{
"response": {
"message": "Error in publishing job schedules",
"uri": "/api/timetracker/publishJobSchedule",
"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/publishJobSchedule?user=EID123&fromDate=2019-07-04&toDate=2019-07-06
Header
CopiedAuthorization: Zoho-oauthtoken 1000.8cb99dxxxxxxxx9be93.9b8xxxxxxf
Sample Response
Copied{
"response": {
"message": "Job schedules published successfully",
"uri": "/api/timetracker/publishJobSchedule",
"status": 0
}
}
Copied<?xml version="1.0" encoding="UTF-8"?>
<response uri="/api/timetracker/publishJobSchedule">
<status>0</status>
<message>Job schedules published successfully</message>
</response>