Starts a new time tracking for a user.

POST

If there is already a running/paused time tracking it will be stopped automatically in order to start the new one.

Required Permissions: The user must be an admin or the creator.

Path parameters

userIdstringRequired

The id of the user. Not required if the me route is used.

Request

This endpoint expects an object.
typeOfWorkIdstringRequired

The id of the type of work of the time tracking.

timezonestringRequired>=1 character

The original timezone of the time tracking. The format of the timezone is the IANA standard.

isBillablebooleanOptionalDefaults to false

Whether the time tracking is billable or not.

isBilledbooleanOptionalDefaults to false

Whether the time tracking is billed or not.

taskIdstringOptional

The id of the task.

projectIdstringOptional

The id of the project.

notestringOptional

The note of the time tracking.

Response

OK

timezonestring>=1 character

The original timezone of the time tracking. The format of the timezone is the IANA standard.

typeOfWorkIdstring

The id of the type of work.

isBillablebooleanOptionalDefaults to false

Whether the time tracking is billable or not.

isBilledbooleanOptionalDefaults to false

Whether the time tracking is billed or not.

taskIdstringOptional

The id of the task.

projectIdstringOptional

The id of the project.

notestringOptional

The note of the time tracking.

startDateUtcdatetimeOptionalDefaults to 1970-01-01T00:00:00.000Z

The date (in UTC) when the time tracking was started.

startTimeUtcstringOptional

The time (in UTC) when the time tracking was started.

endDateUtcdatetimeOptionalDefaults to 1970-01-01T00:00:00.000Z

The date (in UTC) when the time tracking was stopped.

endTimeUtcstringOptional

The time (in UTC) when the time tracking was stopped. Required when the time tracking has already been completed and Duration has not been set.

startDateLocaldatetimeOptionalDefaults to 1970-01-01T00:00:00.000Z

The date (in Local) when the time tracking was started.

startTimeLocalstringOptional

The time (in Local) when the time tracking was started.

endDateLocaldatetimeOptionalDefaults to 1970-01-01T00:00:00.000Z

The date (in Local) when the time tracking was stopped.

endTimeLocalstringOptional

The time (in Local) when the time tracking was stopped. Required when the time tracking has already been completed and Duration has not been set.

durationintegerOptional

The duration of the time tracking in seconds. Required when the time tracking has already been completed and EndTime has not been set.

breakDurationintegerOptional

The duration of the break in seconds. Cannot be set via API.

userIdstringOptional

The id of the user. Can be null if the user was deleted.

idstringOptional

The id of the time tracking.

createdBystringOptional

The id of the user who created this time tracking.

createdOndatetimeOptionalDefaults to 1970-01-01T00:00:00.000Z

The date this time tracking was created.

updatedBystringOptional

The id of the user who last updated this time tracking.

updatedOndatetimeOptionalDefaults to 1970-01-01T00:00:00.000Z

The date this time tracking was last modified.

typeOfWorkobjectOptional
userobjectOptional
taskobjectOptional
projectobjectOptional
breakslist of objectsOptional

The breaks of the time tracking.

resourceVersionlongOptionalDefaults to 0

The version of the entity, updated on every modification, to the ticks in UTC. Not identical to UpdatedOn.

isExternalbooleanOptionalDefaults to false

True if this entity is coming from an external workspace (awork Connect).