Milestones

4 Trellis API endpoints for milestones, with the scopes, parameters and response each one takes.

List a project's milestones

GET/workspace/{handle}/{key}/milestones

Scopes

Needs a token holding projects:read, timeline:read or timeline:write.

Path parameters

handlestringRequired

Workspace handle, as it appears in the Trellis URL.

keystringRequired

Project key, e.g. `T-001`.

Responses

200OK

array of ProjectMilestoneResponse

colorstringnullable
created_atstring
created_bystring
datestring
descriptionstringnullable
idstring
namestring
project_idstring
updated_atstringnullable
updated_bystringnullable

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.

Create a milestone

POST/workspace/{handle}/{key}/milestones

Scopes

Needs a token holding timeline:write.

Path parameters

handlestringRequired

Workspace handle, as it appears in the Trellis URL.

keystringRequired

Project key, e.g. `T-001`.

Request bodyapplication/json

CreateProjectMilestoneRequest

colorstringnullable
datestringRequired
descriptionstringnullable
namestringRequired

Responses

201Created

ProjectMilestoneResponse

colorstringnullable
created_atstring
created_bystring
datestring
descriptionstringnullable
idstring
namestring
project_idstring
updated_atstringnullable
updated_bystringnullable

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 milestone

PUT/workspace/{handle}/{key}/milestones/{milestoneId}

Scopes

Needs a token holding timeline:write.

Path parameters

handlestringRequired

Workspace handle, as it appears in the Trellis URL.

keystringRequired

Project key, e.g. `T-001`.

milestoneIdstringRequired

Request bodyapplication/json

UpdateProjectMilestoneRequest

colorstringnullable
datestringnullable
descriptionstringnullable
namestringnullable

Responses

200OK

ProjectMilestoneResponse

colorstringnullable
created_atstring
created_bystring
datestring
descriptionstringnullable
idstring
namestring
project_idstring
updated_atstringnullable
updated_bystringnullable

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 milestone

DELETE/workspace/{handle}/{key}/milestones/{milestoneId}

Scopes

Needs a token holding timeline:write.

Path parameters

handlestringRequired

Workspace handle, as it appears in the Trellis URL.

keystringRequired

Project key, e.g. `T-001`.

milestoneIdstringRequired

Responses

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.