milestones.md 1.1 KB
Newer Older
N
Nihad Abbasov 已提交
1 2
## List project milestones

3
Returns a list of project milestones.
N
Nihad Abbasov 已提交
4 5 6 7 8 9 10

```
GET /projects/:id/milestones
```

Parameters:

11
+ `id` (required) - The ID of a project
N
Nihad Abbasov 已提交
12

13 14 15 16

## Get single milestone

Gets a single project milestone.
N
Nihad Abbasov 已提交
17 18 19 20 21 22 23

```
GET /projects/:id/milestones/:milestone_id
```

Parameters:

24
+ `id` (required) - The ID of a project
N
Nihad Abbasov 已提交
25 26
+ `milestone_id` (required) - The ID of a project milestone

27 28

## Create new milestone
N
Nihad Abbasov 已提交
29

30
Creates a new project milestone.
N
Nihad Abbasov 已提交
31 32 33 34 35 36 37

```
POST /projects/:id/milestones
```

Parameters:

38
+ `id` (required) - The ID of a project
N
Nihad Abbasov 已提交
39 40 41 42
+ `title` (required) - The title of an milestone
+ `description` (optional) - The description of the milestone
+ `due_date` (optional) - The due date of the milestone

43

N
Nihad Abbasov 已提交
44 45
## Edit milestone

46
Updates an existing project milestone.
N
Nihad Abbasov 已提交
47 48 49 50 51 52 53

```
PUT /projects/:id/milestones/:milestone_id
```

Parameters:

54
+ `id` (required) - The ID of a project
N
Nihad Abbasov 已提交
55 56 57 58 59
+ `milestone_id` (required) - The ID of a project milestone
+ `title` (optional) - The title of a milestone
+ `description` (optional) - The description of a milestone
+ `due_date` (optional) - The due date of the milestone
+ `closed` (optional) - The status of the milestone
60