Time logs

5 Trellis API endpoints for time logs, with the scopes, parameters and response each one takes.

Log time for a member

POST/workspace/{handle}/timelogs

Scopes

Needs a token holding timelogs:write.

Path parameters

handlestringRequired

Workspace handle, as it appears in the Trellis URL.

Request bodyapplication/json

CreateTimelogRequest

colorstring
end_timestring (date-time)
issue_idstring
start_timestring (date-time)
tzstring
user_idstring

Responses

201Created

TimelogResponse

colorstring
created_atstring
end_timestring (date-time)
idstring
issue_codestring
issue_idstring
issue_invoice_numberstringnullable
issue_titlestring
project_keystring
rate_card_idstringnullable
rate_per_hourstringnullable
start_timestring (date-time)
tzstring
updated_atstring
user_idstring

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 member's time entries

GET/workspace/{handle}/timelogs/{id}

Scopes

Needs a token holding timelogs:read or timelogs:write.

Path parameters

handlestringRequired

Workspace handle, as it appears in the Trellis URL.

idstringRequired

UUID 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

colorstring
created_atstring
end_timestring (date-time)
idstring
issue_codestring
issue_idstring
issue_invoice_numberstringnullable
issue_titlestring
project_keystring
rate_card_idstringnullable
rate_per_hourstringnullable
start_timestring (date-time)
tzstring
updated_atstring
user_idstring

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.

Update a time entry

PATCH/workspace/{handle}/timelogs/{id}

Scopes

Needs a token holding timelogs:write.

Path parameters

handlestringRequired

Workspace handle, as it appears in the Trellis URL.

idstringRequired

Time entry UUID.

Request bodyapplication/json

UpdateTimelogRequest

colorstring
end_timestring (date-time)
start_timestring (date-time)
tzstring

Responses

200OK

TimelogResponse

colorstring
created_atstring
end_timestring (date-time)
idstring
issue_codestring
issue_idstring
issue_invoice_numberstringnullable
issue_titlestring
project_keystring
rate_card_idstringnullable
rate_per_hourstringnullable
start_timestring (date-time)
tzstring
updated_atstring
user_idstring

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.

Delete a time entry

DELETE/workspace/{handle}/timelogs/{id}

Scopes

Needs a token holding timelogs:write.

Path parameters

handlestringRequired

Workspace handle, as it appears in the Trellis URL.

idstringRequired

Time 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

GET/workspace/{handle}/timelogs/issue/{id}

Scopes

Needs a token holding timelogs:read or timelogs:write.

Path parameters

handlestringRequired

Workspace handle, as it appears in the Trellis URL.

idstringRequired

Task UUID.

Query parameters

pageinteger

Page to return, starting at 1. Defaults to 1.

limitinteger

Entries per page. Defaults to 10.

Responses

200OK

TimelogListResponse

has_moreboolean
limitinteger
pageinteger
timelogsarray of TimelogResponsenullable
15 fields
colorstring
created_atstring
end_timestring (date-time)
idstring
issue_codestring
issue_idstring
issue_invoice_numberstringnullable
issue_titlestring
project_keystring
rate_card_idstringnullable
rate_per_hourstringnullable
start_timestring (date-time)
tzstring
updated_atstring
user_idstring
totalinteger (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.