toggl / toggl_api_docs

Documentation for the Toggl API
1.4k stars 235 forks source link

In the Detailed Report, the ReportTimeEntry Ids cannot be used with the TimeEntries call #306

Closed davidnmbond closed 6 years ago

davidnmbond commented 6 years ago

The Detailed Report API call: https://github.com/toggl/toggl_api_docs/blob/master/reports/detailed.md ...returns a list of ReportTimeEntries with Ids that cannot be used to call the Time Entry call: https://github.com/toggl/toggl_api_docs/blob/master/chapters/time_entries.md

Please include the Time Entry Id into the ReportTimeEntry response to remedy this.

danielabbatt commented 6 years ago

What operation are you trying to do for the time entry? I can get a list of entries in the report each of which has an "id" under the "data" node. For each of those I perform a get on https://www.toggl.com/api/v8/time_entries/nnnnnnn and it works fine, the details for the time entry are returned.

danielabbatt commented 6 years ago

On closer investigation it seems that the url will only work for your own time entries and does not allow you to access time entries belonging to other users in the same workspace, even if you get read those time entries and get their Ids as part of a detailed report!

webervin commented 6 years ago

please be more specific what you want to do.

davidnmbond commented 6 years ago

Not looking to add time - just to retrieve a single TimeEntry. It is possible for the (admin) user to retrieve en masse with a Detailed Report, so why would it not be possible to retrieve the individual entry. The PUT verb works fine, so why would it not be possible to do a GET? Clearly a bug, I'm afraid.

webervin commented 6 years ago

fetching of time entries for other people is among tasks of reports api, not api v8. so no bug here.

refer to time_entry_ids: A list of time entry IDs separated by a comma parameter in documentation.

jalovatt commented 4 years ago

fetching of time entries for other people is among tasks of reports api, not api v8. so no bug here.

refer to time_entry_ids: A list of time entry IDs separated by a comma parameter in documentation.

Necrobump, but I just ran headfirst into the same issue. For what it's worth, the first paragraph of time_entries.md says that we can get both our own entries and any entries for workspaces where we're an admin:

Only his/her time entries and time entries in a workspace where the user is an admin are updated, retrieved and created.