5 Trellis API endpoints for time logs, with the scopes, parameters and response each one takes.
Log time for a member
/workspace/{handle}/timelogsScopes
Needs a token holding timelogs:write.
Path parameters
handlestringRequiredWorkspace handle, as it appears in the Trellis URL.
Request bodyapplication/json
CreateTimelogRequest
colorstringend_timestring (date-time)issue_idstringstart_timestring (date-time)tzstringuser_idstringResponses
201Created
TimelogResponse
colorstringcreated_atstringend_timestring (date-time)idstringissue_codestringissue_idstringissue_invoice_numberstringnullableissue_titlestringproject_keystringrate_card_idstringnullablerate_per_hourstringnullablestart_timestring (date-time)tzstringupdated_atstringuser_idstringdefaultError. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message.
See Errors for the fields it carries.
List a member's time entries
/workspace/{handle}/timelogs/{id}Scopes
Needs a token holding timelogs:read or timelogs:write.
Path parameters
handlestringRequiredWorkspace handle, as it appears in the Trellis URL.
idstringRequiredUUID of the workspace member whose entries to return — not a time entry ID. Entries on projects outside the installation's scope are left out.
Responses
200OK
array of TimelogResponse
colorstringcreated_atstringend_timestring (date-time)idstringissue_codestringissue_idstringissue_invoice_numberstringnullableissue_titlestringproject_keystringrate_card_idstringnullablerate_per_hourstringnullablestart_timestring (date-time)tzstringupdated_atstringuser_idstringdefaultError. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message.
See Errors for the fields it carries.
Update a time entry
/workspace/{handle}/timelogs/{id}Scopes
Needs a token holding timelogs:write.
Path parameters
handlestringRequiredWorkspace handle, as it appears in the Trellis URL.
idstringRequiredTime entry UUID.
Request bodyapplication/json
UpdateTimelogRequest
colorstringend_timestring (date-time)start_timestring (date-time)tzstringResponses
200OK
TimelogResponse
colorstringcreated_atstringend_timestring (date-time)idstringissue_codestringissue_idstringissue_invoice_numberstringnullableissue_titlestringproject_keystringrate_card_idstringnullablerate_per_hourstringnullablestart_timestring (date-time)tzstringupdated_atstringuser_idstringdefaultError. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message.
See Errors for the fields it carries.
Delete a time entry
/workspace/{handle}/timelogs/{id}Scopes
Needs a token holding timelogs:write.
Path parameters
handlestringRequiredWorkspace handle, as it appears in the Trellis URL.
idstringRequiredTime entry UUID.
Responses
204No Content
defaultError. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message.
See Errors for the fields it carries.
List a task's time entries
/workspace/{handle}/timelogs/issue/{id}Scopes
Needs a token holding timelogs:read or timelogs:write.
Path parameters
handlestringRequiredWorkspace handle, as it appears in the Trellis URL.
idstringRequiredTask UUID.
Query parameters
pageintegerPage to return, starting at 1. Defaults to 1.
limitintegerEntries per page. Defaults to 10.
Responses
200OK
TimelogListResponse
has_morebooleanlimitintegerpageintegertimelogsarray of TimelogResponsenullable15 fields
colorstringcreated_atstringend_timestring (date-time)idstringissue_codestringissue_idstringissue_invoice_numberstringnullableissue_titlestringproject_keystringrate_card_idstringnullablerate_per_hourstringnullablestart_timestring (date-time)tzstringupdated_atstringuser_idstringtotalinteger (int64)defaultError. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message.
See Errors for the fields it carries.