4 Trellis API endpoints for milestones, with the scopes, parameters and response each one takes.
List a project's milestones
/workspace/{handle}/{key}/milestonesScopes
Needs a token holding projects:read, timeline:read or timeline:write.
Path parameters
handlestringRequiredWorkspace handle, as it appears in the Trellis URL.
keystringRequiredProject key, e.g. `T-001`.
Responses
200OK
array of ProjectMilestoneResponse
colorstringnullablecreated_atstringcreated_bystringdatestringdescriptionstringnullableidstringnamestringproject_idstringupdated_atstringnullableupdated_bystringnullabledefaultError. 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 milestone
/workspace/{handle}/{key}/milestonesScopes
Needs a token holding timeline:write.
Path parameters
handlestringRequiredWorkspace handle, as it appears in the Trellis URL.
keystringRequiredProject key, e.g. `T-001`.
Request bodyapplication/json
CreateProjectMilestoneRequest
colorstringnullabledatestringRequireddescriptionstringnullablenamestringRequiredResponses
201Created
ProjectMilestoneResponse
colorstringnullablecreated_atstringcreated_bystringdatestringdescriptionstringnullableidstringnamestringproject_idstringupdated_atstringnullableupdated_bystringnullabledefaultError. 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 milestone
/workspace/{handle}/{key}/milestones/{milestoneId}Scopes
Needs a token holding timeline:write.
Path parameters
handlestringRequiredWorkspace handle, as it appears in the Trellis URL.
keystringRequiredProject key, e.g. `T-001`.
milestoneIdstringRequiredRequest bodyapplication/json
UpdateProjectMilestoneRequest
colorstringnullabledatestringnullabledescriptionstringnullablenamestringnullableResponses
200OK
ProjectMilestoneResponse
colorstringnullablecreated_atstringcreated_bystringdatestringdescriptionstringnullableidstringnamestringproject_idstringupdated_atstringnullableupdated_bystringnullabledefaultError. 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 milestone
/workspace/{handle}/{key}/milestones/{milestoneId}Scopes
Needs a token holding timeline:write.
Path parameters
handlestringRequiredWorkspace handle, as it appears in the Trellis URL.
keystringRequiredProject key, e.g. `T-001`.
milestoneIdstringRequiredResponses
200OK
Confirmation message.
string
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.