Modify Time Logs API
This API is used to edit a specific time log.
Request URL:
https://people.zoho.com/people/api/timetracker/edittimelog?timeLogId=<timeLogId>&user= <user>&workDate =<workDate>&jobId =<jobId>&hours=<hours>&fromTime=<fromTime>&toTime=<toTime>&billingStatus =<billingStatus>&description =<description>&workItem=<workItem>
Header:
Authorization: Zoho-oauthtoken 1000.8cb99dxxxxxxxx9be93.9b8xxxxxxf
Scope:
ZOHOPEOPLE.timetracker.ALL
OR
ZOHOPEOPLE.timetracker.UPDATE
Possible Operation Types:
ALL - Complete access to data
UPDATE - Only to update data
Request parameter:
Parameters | Values Allowed | Default Value | Description |
*timeLogId | <timeLogId> | <Mandatory> | Specify the timelog Id whose details needs to be modified |
user | < ERECNO | Email-ID | Employee-ID > | <Mandatory> | Specify the user |
jobId | <jobId > | - | Specify the job Id if needed to be modified. |
workDate | <date in yyyy-MM-dd/company dateformat> | - | Specify the workdate if needed to be modified. |
dateFormat | <dateformat> | yyyy-MM-dd | Specify the date format. If not specified, yyyy-MM-dd format will be taken |
billingStatus | <billable|non-billable> | - | Specify the billable status if needed |
hours | <hours in decimal/time format> | - | Decimal-2.5 or Time format-2:30 |
fromTime | <time in timeformat> | - | Time format-2:30PM or 14:30 |
toTime | <time in timeformat> | - | Time format-2:30PM or 14:30 |
workItem | <workitem> | - | Specify the workitem |
description | <description> | - | Specify the description |
Error Codes & Messages:
Error Code | Error Message |
8000 | No parameter specified |
8002 | Wrong format for parameter |
8001 | Wrong value for parameter |
7038 | Permission denied |
8008 | Cannot log time during Weekend/Holidays/Leave |
Messages |
Error in modifying data |
Manual Log is disabled in Settings. Contact your Administrator. |
Cannot log time for a Future Date |
Cannot log time for a Past Date |
You can log time only for the past 7 days |
Unable to add/modify time log. Logged hours should not exceed 24 hours per day. |
Logged-in user alone can start timer |
Error in adding/modifying Timelog.Logged Hours is greater than maximum billable hours allowed per day |
Cannot log time beyond attendance hours |
Error in adding/modifying Timelog.Logged Hours is greater than Estimated hours |
Success Response Format
{
"response": {
"result": [
{
"timeLogId": <timelogId>
}
],
"message": "Timelog entry modified Successfully",
"uri": "/api/timetracker/edittimelog",
"status": 0
}
}
Error Response Format
{
"response": {
"message": < message >,
"uri": "/api/timetracker/edittimelog",
"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/people/api/timetracker/edittimelog?timeLogId=177402000000814321&workItem=designing&user=49268800000013&billingStatus=Billable&hours=10
Copiedhttps://people.zoho.com/people/api/timetracker/edittimelog?timeLogId=<timeLogId>&user= <user>&workDate =<workDate>&jobId =<jobId>&hours=<hours>&fromTime=<fromTime>&toTime=<toTime>&billingStatus =<billingStatus>&description =<description>&workItem=<workItem>
Header
CopiedAuthorization: Zoho-oauthtoken 1000.8cb99dxxxxxxxx9be93.9b8xxxxxxf
Sample Response
Copied{
"response": {
"result": [
{
"timeLogId": "469505000000265027"
}
],
"message": "Timelog entry modified Successfully",
"uri": "/api/timetracker/edittimelog",
"status": 0
}
}
Copied<?xml version="1.0" encoding="UTF-8"?>
<response uri="/api/timetracker/edittimelog">
<status>0</status>
<message>Timelog entry modified Successfully</message>
<result>
<timeLogId>469505000000265027</timeLogId>
</result>
</response>