11 Trellis API endpoints for resourcing, with the scopes, parameters and response each one takes.
List a project's resource segments in a date window
/workspace/{handle}/{key}/resource-segmentsScopes
Needs a token holding issues:read, issues:write or projects:read.
Path parameters
handlestringRequiredWorkspace handle, as it appears in the Trellis URL.
keystringRequiredProject key, e.g. `T-001`.
Query parameters
startstringRequiredFirst day of the window (YYYY-MM-DD or RFC 3339).
endstringRequiredLast day of the window (YYYY-MM-DD or RFC 3339).
Responses
200OK
array of ResourceSegmentResponse
allocationsarray of ResourceSegmentAllocationResponsenullable4 fields
hoursnumber (double)idstringsegment_idstringuser_idstringcreated_atstringend_datestringidstringissue_idstringproject_idstringstart_datestringupdated_atstringdefaultError. 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.
Create a resource segment for an issue
/workspace/{handle}/{key}/resource-segmentsScopes
Needs a token holding issues:write.
Path parameters
handlestringRequiredWorkspace handle, as it appears in the Trellis URL.
keystringRequiredProject key, e.g. `T-001`.
Request bodyapplication/json
CreateResourceSegmentRequest
end_datestringRequiredissue_idstringRequiredstart_datestringRequiredResponses
201Created
ResourceSegmentResponse
allocationsarray of ResourceSegmentAllocationResponsenullable4 fields
hoursnumber (double)idstringsegment_idstringuser_idstringcreated_atstringend_datestringidstringissue_idstringproject_idstringstart_datestringupdated_atstringdefaultError. 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 resource segment's dates
/workspace/{handle}/{key}/resource-segments/{segmentId}Scopes
Needs a token holding issues:write.
Path parameters
handlestringRequiredWorkspace handle, as it appears in the Trellis URL.
keystringRequiredProject key, e.g. `T-001`.
segmentIdstringRequiredRequest bodyapplication/json
UpdateResourceSegmentRequest
end_datestringRequiredstart_datestringRequiredResponses
200OK
ResourceSegmentResponse
allocationsarray of ResourceSegmentAllocationResponsenullable4 fields
hoursnumber (double)idstringsegment_idstringuser_idstringcreated_atstringend_datestringidstringissue_idstringproject_idstringstart_datestringupdated_atstringdefaultError. 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 resource segment's dates
/workspace/{handle}/{key}/resource-segments/{segmentId}Scopes
Needs a token holding issues:write.
Path parameters
handlestringRequiredWorkspace handle, as it appears in the Trellis URL.
keystringRequiredProject key, e.g. `T-001`.
segmentIdstringRequiredRequest bodyapplication/json
UpdateResourceSegmentRequest
end_datestringRequiredstart_datestringRequiredResponses
200OK
ResourceSegmentResponse
allocationsarray of ResourceSegmentAllocationResponsenullable4 fields
hoursnumber (double)idstringsegment_idstringuser_idstringcreated_atstringend_datestringidstringissue_idstringproject_idstringstart_datestringupdated_atstringdefaultError. 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 resource segment
/workspace/{handle}/{key}/resource-segments/{segmentId}Scopes
Needs a token holding issues:write.
Path parameters
handlestringRequiredWorkspace handle, as it appears in the Trellis URL.
keystringRequiredProject key, e.g. `T-001`.
segmentIdstringRequiredResponses
200OK
ResourceSegmentDeleted
deletedbooleandefaultError. 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.
Set a member's hours on a resource segment
/workspace/{handle}/{key}/resource-segments/{segmentId}/allocations/{userId}Scopes
Needs a token holding issues:write.
Path parameters
handlestringRequiredWorkspace handle, as it appears in the Trellis URL.
keystringRequiredProject key, e.g. `T-001`.
segmentIdstringRequireduserIdstringRequiredRequest bodyapplication/json
UpsertSegmentAllocationRequest
hoursnumber (double)nullableRequiredResponses
200OK
ResourceSegmentAllocationResponse
hoursnumber (double)idstringsegment_idstringuser_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.
Remove a member's allocation from a resource segment
/workspace/{handle}/{key}/resource-segments/{segmentId}/allocations/{userId}Scopes
Needs a token holding issues:write.
Path parameters
handlestringRequiredWorkspace handle, as it appears in the Trellis URL.
keystringRequiredProject key, e.g. `T-001`.
segmentIdstringRequireduserIdstringRequiredResponses
200OK
ResourceSegmentDeleted
deletedbooleandefaultError. 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.
Move an allocation from one member to another
/workspace/{handle}/{key}/resource-segments/{segmentId}/allocations/reassignScopes
Needs a token holding issues:write.
Path parameters
handlestringRequiredWorkspace handle, as it appears in the Trellis URL.
keystringRequiredProject key, e.g. `T-001`.
segmentIdstringRequiredRequest bodyapplication/json
ReassignSegmentAllocationRequest
from_user_idstringRequiredto_user_idstringRequiredResponses
200OK
ResourceSegmentAllocationResponse
hoursnumber (double)idstringsegment_idstringuser_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.
Add a member's hours to an issue for a week
/workspace/{handle}/{key}/resource-segments/add-allocationScopes
Needs a token holding issues:write.
Path parameters
handlestringRequiredWorkspace handle, as it appears in the Trellis URL.
keystringRequiredProject key, e.g. `T-001`.
Request bodyapplication/json
AddSegmentAllocationRequest
hoursnumber (double)nullableRequiredissue_idstringRequireduser_idstringRequiredweek_startstringRequiredResponses
200OK
array of ResourceSegmentResponse
allocationsarray of ResourceSegmentAllocationResponsenullable4 fields
hoursnumber (double)idstringsegment_idstringuser_idstringcreated_atstringend_datestringidstringissue_idstringproject_idstringstart_datestringupdated_atstringdefaultError. 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.
Get the workspace's resource allocations by member
/workspace/{handle}/resourcing/allocationsScopes
Needs a token holding issues:read, issues:write or projects:read.
Path parameters
handlestringRequiredWorkspace handle, as it appears in the Trellis URL.
Query parameters
start_datestringFirst day of the window (YYYY-MM-DD or RFC 3339). Required unless start is given.
end_datestringLast day of the window (YYYY-MM-DD or RFC 3339). Required unless end is given.
startstringAlias for start_date.
endstringAlias for end_date.
pageintegerPage number, starting at 1.
limitintegerMembers per page. Omit to return every member.
searchstringCase-insensitive match against member name or rate card name.
include_unallocatedbooleanInclude members with no allocations in the window.
user_idsstringComma-separated user IDs to include.
project_idsstringComma-separated project IDs to include.
rate_card_idsstringComma-separated rate card IDs to include. Ignored for roles that cannot see rate cards.
exclude_user_idsstringComma-separated user IDs to exclude.
exclude_project_idsstringComma-separated project IDs to exclude.
exclude_rate_card_idsstringComma-separated rate card IDs to exclude. Ignored for roles that cannot see rate cards.
Responses
200OK
ResourcingAllocationsResponse
end_datestringhas_morebooleanlimitintegermembersarray of ResourcingMemberAllocationResponsenullable8 fields
avatarstringavatar_gradientstringdaysarray of ResourcingDayAllocationResponsenullable2 fields
datestringhoursnumber (double)idstringnamestringprojectsarray of ResourcingProjectAllocationResponsenullable4 fields
colorstringdaysarray of ResourcingDayAllocationResponsenullable2 fields
datestringhoursnumber (double)keystringnamestringrate_card_namestringtotal_hoursnumber (double)pageintegerstart_datestringtotalintegerworkspace_has_allocationsbooleandefaultError. 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.
Query the workspace's resource allocations by member
/workspace/{handle}/resourcing/allocationsScopes
Needs a token holding issues:read, issues:write or projects:read.
Path parameters
handlestringRequiredWorkspace handle, as it appears in the Trellis URL.
Request bodyapplication/json
ResourcingAllocationsQuery
end_datestringRequiredexclude_project_idsarray of stringnullableexclude_rate_card_idsarray of stringnullableexclude_user_idsarray of stringnullableinclude_unallocatedbooleanlimitintegerpageintegerproject_idsarray of stringnullablerate_card_idsarray of stringnullablesearchstringstart_datestringRequireduser_idsarray of stringnullableResponses
200OK
ResourcingAllocationsResponse
end_datestringhas_morebooleanlimitintegermembersarray of ResourcingMemberAllocationResponsenullable8 fields
avatarstringavatar_gradientstringdaysarray of ResourcingDayAllocationResponsenullable2 fields
datestringhoursnumber (double)idstringnamestringprojectsarray of ResourcingProjectAllocationResponsenullable4 fields
colorstringdaysarray of ResourcingDayAllocationResponsenullable2 fields
datestringhoursnumber (double)keystringnamestringrate_card_namestringtotal_hoursnumber (double)pageintegerstart_datestringtotalintegerworkspace_has_allocationsbooleandefaultError. 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.