Timesheets

Timesheets API

Scope: ZohoProjects.timesheets.{Operation}

Operations: READ, CREATE, UPDATE, DELETE, ALL

Use the ALL operation to gain the scope for all the other operations like READ, CREATE, UPDATE, and DELETE at once.

Get All Time Logs
GET  /portal/[PORTALID]/projects/[PROJECTID]/logs/
 
Get My Time Logs
GET  /portal/[PORTALID]/logs/
 
Add Time Log for a Task
POST  /portal/[PORTALID]/projects/[PROJECTID]/tasks/[TASKID]/logs/
 
Update Time Log for a Task
POST /portal/[PORTALID]/projects/[PROJECTID]/tasks/[TASKID]/logs/[LOGID]/
Approve Time Log for a Task
POST /portal/[PORTALID]/projects/[PROJECTID]/tasks/[TASKID]/logs/[LOGID]/approval
Delete Time Log for a Task
DELETE  /portal/[PORTALID]/projects/[PROJECTID]/tasks/[TASKID]/logs/[LOGID]/
Add Time Log for a Bug
POST  /portal/[PORTALID]/projects/[PROJECTID]/bugs/[BUGID]/logs/
Update Time Log for a Bug
POST  /portal/[PORTALID]/projects/[PROJECTID]/bugs/[BUGID]/logs/[LOGID]/
Approve Time Log for a Bug
POST  /portal/[PORTALID]/projects/[PROJECTID]/bugs/[BUGID]/logs/[LOGID]/approval
Delete Time Log for a Bug
DELETE  /portal/[PORTALID]/projects/[PROJECTID]/bugs/[BUGID]/logs/[LOGID]/
Add Time for a General Log
POST  /portal/[PORTALID]/projects/[PROJECTID]/logs/
Update Time for a General Log
POST  /portal/[PORTALID]/projects/[PROJECTID]/logs/[LOGID]/
Approve Time for a General Log
POST  /portal/[PORTALID]/projects/[PROJECTID]/logs/[LOGID]/approval
Delete Time for a General Log
DELETE  /portal/[PORTALID]/projects/[PROJECTID]/logs/[LOGID]/

 Get All Time Logs

Gets all the time logs in the given project.

GET  /portal/[PORTALID]/projects/[PROJECTID]/logs/

Scope: ZohoProjects.timesheets.READ

Request Parameters

indexintIndex of the time log.
rangeintRange of the time logs.
users_list*String or LongUser of the time logs must be provided as all or user ID. For multiple users, the user ID must be separated by commas.(all - String, user ID - Long)
view_type*StringView type of the timesheet must be provided as day or week or month.
date*

String

[MM-DD-YYYY]

Date of the timesheet view type.
bill_status*StringTimesheet billable status must be provided as All or Billable or Non Billable.
component_type*StringType of the component must be provided as task or bug or general.

Sample Response

Status: 200 Success

Content Type: application/json;charset=utf-8
{
  "timelogs": {
    "date": [
      {
        "date": "08-13-2018",
        "display_format": "08-13-2018 12:00:00 AM",
        "date_long": 1534143600000,
        "total_hours": "10:00",
        "tasklogs": [
          {
            "created_time_long": 1534152136334,
            "hours": 5,
            "notes": "",
            "owner_name": "Helen Collins",
            "created_time_format": "08-13-2018 02:22:16 AM",
            "minutes": 0,
            "total_minutes": 300,
            "owner_id": "639283127",
            "approval_status": "Unapproved",
            "link": {
              "self": {
                "url": "https://projectsapi.zoho.com/restapi/portal/2063927/projects/170876000003055013/tasks/170876000005059003/logs/170876000005412005/"
              }
            },
            "last_modified_date": "08-13-2018",
            "bill_status": "Non billable",
            "last_modified_time_long": 1534152372046,
            "last_modified_time_format": "08-13-2018 02:26:12 AM",
            "task": {
              "name": "Build house",
              "id_string": "170876000005059003",
              "id": 170876000005059000
            },
            "id_string": "170876000005412005",
            "created_date": "08-13-2018",
            "id": 170876000005412000,
            "hours_display": "05:00"
          },
          {
            "created_time_long": 1534159537786,
            "hours": 5,
            "notes": "",
            "owner_name": "Patricia Boyle",
            "created_time_format": "08-13-2018 04:25:37 AM",
            "minutes": 0,
            "total_minutes": 300,
            "owner_id": "639283127",
            "approval_status": "Unapproved",
            "link": {
              "self": {
                "url": "https://projectsapi.zoho.com/restapi/portal/2063927/projects/170876000003055013/tasks/170876000005059003/logs/170876000005413001/"
              }
            },
            "last_modified_date": "08-13-2018",
            "bill_status": "Non billable",
            "last_modified_time_long": 1534159703756,
            "last_modified_time_format": "08-13-2018 04:28:23 AM",
            "task": {
              "name": "Build house",
              "id_string": "170876000005059003",
              "id": 170876000005059000
            },
            "id_string": "170876000005413001",
            "created_date": "08-13-2018",
            "id": 170876000005413000,
            "hours_display": "05:00"
          }
        ]
      }
    ],
    "role": "admin",
    "grandtotal": "10:00"
  }
}

 Get My Time Logs

Gets the time logs of all users or specific users.

GET  /portal/[PORTALID]/logs/

Scope: ZohoProjects.timesheets.READ

Request Parameters

indexintIndex of the time log.
rangeintRange of the time logs.
users_list*String or LongUser of the time logs must be provided as all or user ID. For multiple users, the user ID must be separated by commas.(all - String, user ID - Long)
view_type*StringView type of the timesheet must be provided as day or week or month.
date*

String

[MM-DD-YYYY]

Date of the timesheet view type.
bill_status*StringTimesheet billable status must be provided as All or Billable or Non Billable.
component_type*StringType of the component must be provided as task or bug or general. 
approval_statusStringStatus of the timesheet approval.

Sample Response

Status: 200 Success

Content Type: application/json;charset=utf-8
{
  "timelogs": {
    "date": [
      {
        "date": "07-03-2018",
        "display_format": "07-03-2018 12:00:00 AM",
        "date_long": 1530601200000,
        "total_hours": "3:00",
        "tasklogs": [
          {
            "created_time_long": 1530614291020,
            "hours": 0,
            "notes": "timesheet log : start time -07-03-2018 03:37 AM end time 07-03-2018 03:38 AM time spent - 00.00",
            "owner_name": "Helen Collins",
            "created_time_format": "07-03-2018 03:38:11 AM",
            "minutes": 0,
            "total_minutes": 0,
            "owner_id": "639283127",
            "approval_status": "Unapproved",
            "link": {
              "self": {
                "url": "https://projectsapi.zoho.com/restapi/portal/null/projects/170876000004143007/tasks/170876000004144059/logs/170876000005312077/"
              }
            },
            "last_modified_date": "07-03-2018",
            "project": {
              "name": "Zylker's Product Launch Celebration",
              "id": 170876000004143000
            },
            "bill_status": "Billable",
            "last_modified_time_long": 1530614294512,
            "last_modified_time_format": "07-03-2018 03:38:14 AM",
            "task": {
              "name": "Go through replies",
              "id_string": "170876000004144059",
              "id": 170876000004144060
            },
            "id_string": "170876000005312077",
            "created_date": "07-03-2018",
            "id": 170876000005312060,
            "hours_display": "00:00"
          },
          {
            "created_time_long": 1530609636909,
            "hours": 3,
            "notes": "",
            "owner_name": "Helen Collins",
            "created_time_format": "07-03-2018 02:20:36 AM",
            "minutes": 0,
            "total_minutes": 180,
            "owner_id": "639283127",
            "approval_status": "Unapproved",
            "link": {
              "self": {
                "url": "https://projectsapi.zoho.com/restapi/portal/null/projects/170876000004154005/tasks/170876000005252079/logs/170876000005309067/"
              }
            },
            "last_modified_date": "07-03-2018",
            "project": {
              "name": "Donnelly Apartments Construction",
              "id": 170876000004154020
            },
            "bill_status": "Billable",
            "last_modified_time_long": 1530609636909,
            "last_modified_time_format": "07-03-2018 02:20:36 AM",
            "task": {
              "name": "Final touch-up",
              "id_string": "170876000005252079",
              "id": 170876000005252060
            },
            "id_string": "170876000005309067",
            "created_date": "07-03-2018",
            "id": 170876000005309060,
            "hours_display": "03:00"
          }
        ]
      },
      {
        "date": "07-30-2018",
        "display_format": "07-30-2018 12:00:00 AM",
        "date_long": 1532934000000,
        "total_hours": "96:08",
        "tasklogs": [
          {
            "created_time_long": 1533020295116,
            "hours": 96,
            "notes": "timesheet log : start time -07-26-2018 11:50 PM end time 07-30-2018 11:58 PM time spent - 96.08",
            "owner_name": "Helen Collins",
            "created_time_format": "07-30-2018 11:58:15 PM",
            "minutes": 8,
            "total_minutes": 5768,
            "owner_id": "639283127",
            "approval_status": "Unapproved",
            "link": {
              "self": {
                "url": "https://projectsapi.zoho.com/restapi/portal/null/projects/170876000003601005/tasks/170876000004154679/logs/170876000005386001/"
              }
            },
            "last_modified_date": "07-30-2018",
            "project": {
              "name": "Collaboration Hall Renovation",
              "id": 170876000003601000
            },
            "bill_status": "Billable",
            "last_modified_time_long": 1533020297013,
            "last_modified_time_format": "07-30-2018 11:58:17 PM",
            "task": {
              "name": "Final walk through",
              "id_string": "170876000004154679",
              "id": 170876000004154700
            },
            "id_string": "170876000005386001",
            "created_date": "07-30-2018",
            "id": 170876000005386020,
            "hours_display": "96:08"
          }
        ]
      },
      {
        "date": "07-26-2018",
        "display_format": "07-26-2018 12:00:00 AM",
        "date_long": 1532588400000,
        "total_hours": "0:06",
        "tasklogs": [
          {
            "created_time_long": 1532674235525,
            "hours": 0,
            "notes": "timesheet log : start time -07-26-2018 11:43 PM end time 07-26-2018 11:50 PM time spent - 00.06",
            "owner_name": "Helen Collins",
            "created_time_format": "07-26-2018 11:50:35 PM",
            "minutes": 6,
            "total_minutes": 6,
            "owner_id": "639283127",
            "approval_status": "Unapproved",
            "link": {
              "self": {
                "url": "https://projectsapi.zoho.com/restapi/portal/null/projects/170876000002977005/tasks/170876000004822017/logs/170876000005381007/"
              }
            },
            "last_modified_date": "07-26-2018",
            "project": {
              "name": "Zylker Conference 2017",
              "id": 170876000002977000
            },
            "bill_status": "Billable",
            "last_modified_time_long": 1532674235525,
            "last_modified_time_format": "07-26-2018 11:50:35 PM",
            "task": {
              "name": "Create theme description",
              "id_string": "170876000004822017",
              "id": 170876000004822000
            },
            "id_string": "170876000005381007",
            "created_date": "07-26-2018",
            "id": 170876000005381000,
            "hours_display": "00:06"
          },
          {
            "created_time_long": 1532674272706,
            "hours": 0,
            "notes": "timesheet log : start time -07-26-2018 11:50 PM end time 07-26-2018 11:51 PM time spent - 00.00",
            "owner_name": "Helen Collins",
            "created_time_format": "07-26-2018 11:51:12 PM",
            "minutes": 0,
            "total_minutes": 0,
            "owner_id": "639283127",
            "approval_status": "Unapproved",
            "link": {
              "self": {
                "url": "https://projectsapi.zoho.com/restapi/portal/null/projects/170876000002977005/tasks/170876000004822017/logs/170876000005381013/"
              }
            },
            "last_modified_date": "07-26-2018",
            "project": {
              "name": "Zylker Conference 2017",
              "id": 170876000002977000
            },
            "bill_status": "Billable",
            "last_modified_time_long": 1532674272706,
            "last_modified_time_format": "07-26-2018 11:51:12 PM",
            "task": {
              "name": "Create theme description",
              "id_string": "170876000004822017",
              "id": 170876000004822000
            },
            "id_string": "170876000005381013",
            "created_date": "07-26-2018",
            "id": 170876000005381020,
            "hours_display": "00:00"
          }
        ]
      }
    ],
    "role": "admin",
    "grandtotal": "99:14"
  }
}

 Add Time Log for a Task

Adds the time log to a task.

POST  /portal/[PORTALID]/projects/[PROJECTID]/tasks/[TASKID]/logs/

Scope: ZohoProjects.timesheets.CREATE

Request Parameters

date*

String

[MM-DD-YYYY]

Date of the timesheet.
ownerLongUser ID.
bill_status*StringTimesheet billable status must be provided as Billable or Non Billable.
hours*

String

[hh:mm]

Time period of the timesheet.
notes

String

Additional information about the time log.

Sample Response

Status: 201 Created

Content Type: application/json;charset=utf-8
{
  "timelogs": {
    "tasklogs": [
      {
        "created_time_long": 1534159537786,
        "hours": 5,
        "notes": "",
        "owner_name": "Steve Young",
        "created_time_format": "08-13-2018 04:25:37 AM",
        "minutes": 0,
        "total_minutes": 300,
        "owner_id": "639283127",
        "approval_status": "Unapproved",
        "link": {
          "self": {
            "url": "https://projectsapi.zoho.com/restapi/portal/2063927/projects/170876000003055013/tasks/170876000005059003/logs/170876000005413001/"
          }
        },
        "last_modified_date": "08-13-2018",
        "log_date_long": 1534229999000,
        "bill_status": "billable",
        "last_modified_time_long": 1534159537786,
        "last_modified_time_format": "08-13-2018 04:25:37 AM",
        "task": {
          "name": "Build house",
          "id_string": "170876000005059003",
          "id": 170876000005059000
        },
        "log_date": "08-13-2018",
        "id_string": "170876000005413001",
        "id": 170876000005413000,
        "created_date": "08-13-2018",
        "log_date_format": "08-13-2018 11:59:59 PM",
        "hours_display": "05:00"
      }
    ]
  }
}

 Update Time Log for a Task

Updates the time log for a task

POST /portal/[PORTALID]/projects/[PROJECTID]/tasks/[TASKID]/logs/[LOGID]/

Scope: ZohoProjects.timesheets.UPDATE

Request Parameters

date*

String

[MM-DD-YYYY]

Date of the timesheet.
ownerLongUser ID.
bill_status*StringTimesheet billable status must be provided as Billable or Non Billable.
hours*

String

[hh:mm]

Time period of the timesheet.
notes

String

Additional information about the time log.

Sample Response

Status: 200 Success

Content Type: application/json;charset=utf-8
{
  "timelogs": {
    "tasklogs": [
      {
        "created_time_long": 1534159537786,
        "hours": 5,
        "notes": "",
        "owner_name": "Helen Collins",
        "created_time_format": "08-13-2018 04:25:37 AM",
        "minutes": 0,
        "total_minutes": 300,
        "owner_id": "639283127",
        "approval_status": "Unapproved",
        "link": {
          "self": {
            "url": "https://projectsapi.zoho.com/restapi/portal/2063927/projects/170876000003055013/tasks/170876000005059003/logs/170876000005413001/"
          }
        },
        "last_modified_date": "08-13-2018",
        "log_date_long": 1534229999000,
        "bill_status": "Non billable",
        "last_modified_time_long": 1534159703756,
        "last_modified_time_format": "08-13-2018 04:28:23 AM",
        "task": {
          "name": "Build house",
          "id_string": "170876000005059003",
          "id": 170876000005059000
        },
        "log_date": "08-13-2018",
        "id_string": "170876000005413001",
        "id": 170876000005413000,
        "created_date": "08-13-2018",
        "log_date_format": "08-13-2018 11:59:59 PM",
        "hours_display": "05:00"
      }
    ]
  }
}

 Approve Time Log for a Task

Approve time log for a task.

POST /portal/[PORTALID]/projects/[PROJECTID]/tasks/[TASKID]/logs/[LOGID]/approval

Scope: ZohoProjects.timesheets.UPDATE

Request Parameters

approvalString The time log is approved if the given value is approve.

Sample Response

Status: 200 Success

Content Type: application/json;charset=utf-8
{
    "timelogs": {
        "tasklogs": [{
            "task": {
                "id": 170876000001217302,
                "name": "Author scope of the guide"
            },
            "approval_status": "Approved",
            "id": 170876000001849051,
            "notes": "",
            "log_date": "05-26-2014 11:59 PM",
            "log_date_long": 1401157799000,
            "hours": 2,
            "minutes": 30,
            "hours_display": "02:30",
            "total_minutes": 150,
            "owner_id": "2060758",
            "owner_name": "Patricia Boyle",
            "bill_status": "Billable",
            "link": {
                "self": {
                    "url": "https://projectsapi.zoho.com/restapi/portal/2063927/projects/170876000000147021/tasks/170876000001217302/logs/170876000001849051/"
                }
            }
        }]

 Delete Time Log for a Task

Deletes the time log for a task.

DELETE  /portal/[PORTALID]/projects/[PROJECTID]/tasks/[TASKID]/logs/[LOGID]/

Scope: ZohoProjects.timesheets.DELETE

Sample Response

Status: 200 Success

Content Type: application/json;charset=utf-8
{
    "response": "Timesheet log Deleted Successfully"
}

 Add Time Log for a Bug

Adds the time log to a bug.

POST  /portal/[PORTALID]/projects/[PROJECTID]/bugs/[BUGID]/logs/

Scope: ZohoProjects.timesheets.CREATE

Request Parameters

date*

String

[MM-DD-YYYY]

Date of the timesheet.
ownerLongUser ID.
bill_status*StringTimesheet billable status must be provided as Billable or Non Billable.
hours*

String

[hh:mm]

Time period of the timesheet.
notes

String

Additional information about the time log.

Sample Response

Status: 201 Created

Content Type: application/json;charset=utf-8
{
  "timelogs": {
    "buglogs": [
      {
        "created_time_long": 1534159650174,
        "hours": 5,
        "notes": "",
        "owner_name": "Helen Collins",
        "created_time_format": "08-13-2018 04:27:30 AM",
        "minutes": 0,
        "total_minutes": 300,
        "owner_id": "639283127",
        "approval_status": "Unapproved",
        "link": {
          "self": {
            "url": "https://projectsapi.zoho.com/restapi/portal/2063927/projects/170876000003055013/bugs/170876000003237035/logs/170876000005413005/"
          }
        },
        "last_modified_date": "08-13-2018",
        "log_date_long": 1531983599000,
        "bill_status": "all",
        "last_modified_time_long": 1534159650174,
        "last_modified_time_format": "08-13-2018 04:27:30 AM",
        "bug": {
          "id_string": "170876000003237035",
          "id": 170876000003237020,
          "title": "I grew up in north Philadelphia. The youngest of  three, I have two older sisters, five and eight years older than me.  In my 35 years of living, I have yet to meet my  \n"
        },
        "log_date": "07-18-2018",
        "id_string": "170876000005413005",
        "id": 170876000005413000,
        "created_date": "08-13-2018",
        "log_date_format": "07-18-2018 11:59:59 PM",
        "hours_display": "05:00"
      }
    ]
  }
}

 Update Time Log for a Bug

Updates the time log for a bug.

POST  /portal/[PORTALID]/projects/[PROJECTID]/bugs/[BUGID]/logs/[LOGID]/

Scope: ZohoProjects.timesheets.UPDATE

Request Parameters

date*

String

[MM-DD-YYYY]

Date of the timesheet.
ownerLongUser ID.
bill_status*StringTimesheet billable status must be provided as Billable or Non Billable.
hours*

String

[hh:mm]

Time period of the timesheet.
notes

String

Additional information about the time log.

Sample Response

Status: 200 Success

Content Type: application/json;charset=utf-8
{
  "timelogs": {
    "buglogs": [
      {
        "created_time_long": 1534159650174,
        "hours": 5,
        "notes": "",
        "owner_name": "Helen Collins",
        "created_time_format": "08-13-2018 04:27:30 AM",
        "minutes": 0,
        "total_minutes": 300,
        "owner_id": "639283127",
        "approval_status": "Unapproved",
        "link": {
          "self": {
            "url": "https://projectsapi.zoho.com/restapi/portal/2063927/projects/170876000003055013/bugs/170876000003237035/logs/170876000005413005/"
          }
        },
        "last_modified_date": "08-13-2018",
        "log_date_long": 1531983599000,
        "bill_status": "billable",
        "last_modified_time_long": 1534159817712,
        "last_modified_time_format": "08-13-2018 04:30:17 AM",
        "bug": {
          "id_string": "170876000003237035",
          "id": 170876000003237020,
          "title": "I grew up in north Philadelphia. The youngest of  three, I have two older sisters, five and eight years older than me.  In my 35 years of living, I have yet to meet my  \n"
        },
        "log_date": "07-18-2018",
        "id_string": "170876000005413005",
        "id": 170876000005413000,
        "created_date": "08-13-2018",
        "log_date_format": "07-18-2018 11:59:59 PM",
        "hours_display": "05:00"
      }
    ]
  }
}

 Approve Time Log for a Bug

Approve time log for a bug.

POST  /portal/[PORTALID]/projects/[PROJECTID]/bugs/[BUGID]/logs/[LOGID]/approval

Scope: ZohoProjects.timesheets.UPDATE

Request Parameters

approvalStringThe time log is approved if the given value is approve.

Sample Response

Status: 200 Success

Content Type: application/json;charset=utf-8
{
    "timelogs": {
        "buglogs": [{
            "bug": {
                "id": 170876000001829171,
                "name": "UI Issue in Gantt"
            },
            "approval_status": "Approved"
            "id": 170876000001849055,
            "notes": "",
            "log_date": "05-26-2014 11:59 PM",
            "log_date_long": 1401157799000,
            "hours": 3,
            "minutes": 30,
            "hours_display": "03:30",
            "total_minutes": 210,
            "owner_id": "2060758",
            "owner_name": "Patricia Boyle",
            "bill_status": "Billable",
            "link": {
                "self": {
                    "url": "https://projectsapi.zoho.com/restapi/portal/2063927/projects/170876000000147021/bugs/170876000001829171/logs/170876000001849055/"
                }
            }
        }]
    }
}

 Delete Time Log for a Bug

Deletes the time log for a bug.

DELETE  /portal/[PORTALID]/projects/[PROJECTID]/bugs/[BUGID]/logs/[LOGID]/

Scope: ZohoProjects.timesheets.DELETE

Sample Response

Status: 200 Success

Content Type: application/json;charset=utf-8
{
    "response": "Timesheet log Deleted Successfully"
}

 Add Time for a General Log

Adds the time log to other tasks.

POST  /portal/[PORTALID]/projects/[PROJECTID]/logs/

Scope: ZohoProjects.timesheets.CREATE

Request Parameters

name*

String

Name of the other tasks.
ownerLongUser ID.
date*

String

[MM-DD-YYYY]

Date of the timesheet.
bill_status*StringTimesheet billable status must be provided as Billable or Non Billable.
hours*

String

[hh:mm]

Time period of the timesheet.
notes

String

Additional information about the time log.

Sample Response

Status: 201 Created

Content Type: application/json;charset=utf-8
{
  "timelogs": {
    "generallogs": [
      {
        "created_time_long": 1534159664291,
        "hours": 5,
        "notes": "",
        "owner_name": "Helen Collins",
        "created_time_format": "08-13-2018 04:27:44 AM",
        "minutes": 0,
        "total_minutes": 300,
        "owner_id": "639283127",
        "approval_status": "Unapproved",
        "link": {
          "self": {
            "url": "https://projectsapi.zoho.com/restapi/portal/2063927/projects/170876000003055013/logs/170876000005413009/"
          }
        },
        "last_modified_date": "08-13-2018",
        "log_date_long": 1531983599000,
        "bill_status": "all",
        "last_modified_time_long": 1534159664291,
        "last_modified_time_format": "08-13-2018 04:27:44 AM",
        "log_date": "07-18-2018",
        "name": "general-log",
        "id_string": "170876000005413009",
        "id": 170876000005413020,
        "created_date": "08-13-2018",
        "log_date_format": "07-18-2018 11:59:59 PM",
        "hours_display": "05:00"
      }
    ]
  }
}

 Update Time for a General Log

Updates the time log for other tasks.

POST  /portal/[PORTALID]/projects/[PROJECTID]/logs/[LOGID]/

Scope: ZohoProjects.timesheets.UPDATE

Request Parameters

name*

String

Name of the other tasks.
ownerLongUser ID.
date*

String

[MM-DD-YYYY]

Date of the timesheet.
bill_status*StringTimesheet billable status must be provided as Billable or Non Billable.
hours*

String

[hh:mm]

Time period of the timesheet.
notes

String

Additional information about the time log.

Sample Response

Status: 200 Success

Content Type: application/json;charset=utf-8
{
  "timelogs": {
    "generallogs": [
      {
        "created_time_long": 1534159664291,
        "hours": 10,
        "notes": "",
        "owner_name": "Helen Collins",
        "created_time_format": "08-13-2018 04:27:44 AM",
        "minutes": 0,
        "total_minutes": 600,
        "owner_id": "639283127",
        "approval_status": "Unapproved",
        "link": {
          "self": {
            "url": "https://projectsapi.zoho.com/restapi/portal/2063927/projects/170876000003055013/logs/170876000005413009/"
          }
        },
        "last_modified_date": "08-13-2018",
        "log_date_long": 1531983599000,
        "bill_status": "all",
        "last_modified_time_long": 1534159890445,
        "last_modified_time_format": "08-13-2018 04:31:30 AM",
        "log_date": "07-18-2018",
        "name": "general-log",
        "id_string": "170876000005413009",
        "id": 170876000005413020,
        "created_date": "08-13-2018",
        "log_date_format": "07-18-2018 11:59:59 PM",
        "hours_display": "10:00"
      }
    ]
  }
}

 Approve Time for a General Log

Approve general time log.

POST  /portal/[PORTALID]/projects/[PROJECTID]/logs/[LOGID]/approval

Scope: ZohoProjects.timesheets.UPDATE

Request Parameters

approvalStringThe time log is approved if the given value is approve.

Sample Response

Status: 200 Success

Content Type: application/json;charset=utf-8
{
    "timelogs": {
        "generallogs": [{
            "approval_status": "Approved"
            "id": 170876000001849059,
            "name": "Client Call",
            "notes": "",
            "log_date": "05-26-2014 11:59 PM",
            "log_date_long": 1401157799000,
            "hours": 2,
            "minutes": 30,
            "hours_display": "02:30",
            "total_minutes": 150,
            "owner_id": "2060758",
            "owner_name": "Patricia Boyle",
            "bill_status": "Billable",
            "link": {
                "self": {
                    "url": "https://projectsapi.zoho.com/restapi/portal/2063927/projects/170876000000147021/logs/170876000001849059/"
                }
            }
        }]
    }
}

 Delete Time for a General Log

Deletes the time log for other tasks.

DELETE  /portal/[PORTALID]/projects/[PROJECTID]/logs/[LOGID]/

Scope: ZohoProjects.timesheets.DELETE

Sample Response

Status: 200 Success

Content Type: application/json;charset=utf-8
{
    "response": "Timesheet log Deleted Successfully"
}

Share this post : FacebookTwitter

Still can't find what you're looking for?

Write to us: support@zohoprojects.com