Project Templates - Phases API

List all phases of a project template

List all phases of a project template with a specific ID:

GET /project_templates/:id/phases

Response

Status: 200 OK
[
  {
    "created_at": "2016-12-23T05:09:05-06:00",
    "id": 13,
    "name": "Planning",
    "position": 1,
    "updated_at": "2016-12-23T05:09:05-06:00"
  },
  {
    "created_at": "2016-12-23T05:09:05-06:00",
    "id": 14,
    "name": "Implementation",
    "position": 2,
    "updated_at": "2016-12-23T05:09:05-06:00"
  }
]

The response contains these fields by default.

Add a phase to a project template

Add a link between a project template with a specific ID and a phase with a specific ID.

POST /project_templates/:id/phases/:phase_id

Response

Status: 200 OK
{

}

Remove a phase from a project template

Remove the link between a project template with a specific ID and a phase with a specific ID.

DELETE /project_templates/:id/phases/:phase_id

Response

Status: 204 No Content

Remove all phases from a project template

Remove all links between a project template with a specific ID and its phases.

DELETE /project_templates/:id/phases

Response

Status: 204 No Content

Fields

created_at
Readonly datetime — The date and time at which the project template’s phase was created.
id
Readonly integer — The unique ID of the project template’s phase.
name
Required string (max 50) — The Name field is used to enter the name of the project template’s phase.
position
Optional integer — The Position field dictates the position that the phase takes when it is presented in its project template.
updated_at
Readonly datetime — The date and time of the last update of the project template’s phase. If the phase has no updates it contains the created_at value.