İçeriğe geç
R-Service R-Service
Документация Р-Сервис

Project Templates - Phases API

Bu içerik henüz dilinizde mevcut değil.

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

GET /project_templates/:id/phases
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 new phase to a project template.

POST /project_templates/:id/phases/

When creating a new phase these fields are available.

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"
}
PATCH /project_templates/:id/phases/:id

When updating a project template phase these fields are available.

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"
}

Remove a phase with a specific ID from a project template with a specific ID.

DELETE /project_templates/:id/phases/:phase_id
Status: 204 No Content

Remove all phases of a project template with a specific ID. Only possible when the project template has no tasks.

DELETE /project_templates/:id/phases
Status: 204 No Content

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.