get_time_entries
Get non-billable time entries for a user within a date range.| Property | |
|---|---|
| Read-only | Yes |
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
userId | string | Yes | — | User ID. Use get_user_list. |
fromDate | DateTime | No | 7 days ago | Start of date range. |
toDate | DateTime | No | Today | End of date range. |
Returns
A list ofTimeEntryDto objects, each containing:
timeEntryId— unique time entry identifieruserId— the user who logged the timenonBillableId— non-billable category IDtimeLogged— duration string (e.g.2h 30m)comment— optional commentdated— the date the time was logged for
get_resource_time
Get items with billable time logged by a user within a date range.| Property | |
|---|---|
| Read-only | Yes |
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
userId | string | Yes | — | User ID. Use get_user_list. |
fromDate | DateTime | No | 7 days ago | Start of date range. |
toDate | DateTime | No | Today | End of date range. |
Returns
A list ofResourceTimeDto objects, each containing:
itemId— the item with time loggedcontainerId— the item’s containersequence— item sequence numbertimeEntries— list of time entries on this item
create_time_entry
Create a new non-billable time entry.| Property | |
|---|---|
| Read-only | No |
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
userId | string | Yes | — | User ID. Use get_user_list. |
nonBillableId | string | Yes | — | Non-billable category ID. Use get_non_billable_list. |
timeLogged | string | Yes | — | Duration (e.g. 2h 30m). |
dated | DateTime | No | Now | The date to log time for. |
comment | string | No | — | Optional comment. |
Returns
The createdTimeEntryDto.
update_time_entry
Update a non-billable time entry. Only provided fields are updated.| Property | |
|---|---|
| Read-only | No |
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
timeEntryId | string | Yes | The time entry ID. Use get_time_entries. |
timeLogged | string | No | New duration. |
comment | string | No | New comment. |
dated | DateTime | No | New date. |
Returns
The updatedTimeEntryDto.
delete_time_entry
Delete a non-billable time entry by its ID.| Property | |
|---|---|
| Read-only | No |
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
timeEntryId | string | Yes | The time entry ID. Use get_time_entries. |