v1
latestOpenAPI 3.0.32026-08-0613775357.6 KBtime entries
Create user time entry
Creates a new time entry for a user. The user_id in the URL must match the user_id in the request body if it's supplied.
Note: When creating time entries, a valid user_id, assignable_id, date and hours must be supplied. Assignable ID can be assignable_id, project_id or leave_type_id.
You can optionally specify values for task and notes, which must be fewer than 256 characters in length. If you know a valid bill_rate_id matching the user and project of the time entry, you can specify that at the time of creating a time entry as well.
post/users/{user_id}/time_entries
Path parameters
user_idinteger required
The ID of the user.
Request body
Example request
{
"user_id": 123,
"assignable_id": 1001,
"date": "2012-01-21",
"hours": 0.5,
"task": "Travel",
"notes": "Drive to Seattle, WA"
}Response
The time entry was created successfully.
Example response
{
"id": 100000,
"user_id": 123,
"assignable_id": 1001,
"assignable_type": "Project",
"date": "2024-09-12",
"is_suggestion": true,
"scheduled_hours": 8,
"bill_rate": 150,
"bill_rate_id": 4,
"created_at": "2024-09-12T04:32:28Z",
"updated_at": "2024-09-18T04:32:28Z"
}