PUT api/2.0/project/milestone/{id}
Updates the selected milestone changing the milestone parameters (title, deadline, status, etc.) specified in the request.
Name |
Description |
Type |
Example |
id
sent in url
|
Milestone ID
|
number
|
1234
|
title
sent in body
|
New milestone title
|
string
|
some text
|
deadline
sent in body
|
New milestone deadline
|
Date and Time
|
Roundtrip format: 2008-04-10T06-30-00.000Z
|
isKey
sent in body
|
Specifies if this is a key milestone or not
optional
|
Bool value
|
true
|
status
sent in body
|
New milestone status ("Open" or "Closed")
|
Open, Closed
|
Open
|
isNotify
sent in body
|
Specifies whether to remind me 48 hours before the milestone due date or not
optional
|
Bool value
|
true
|
description
sent in body
|
New milestone description
|
string
|
some text
|
projectID
sent in body
|
New project ID
|
number
|
1234
|
responsible
sent in body
|
New milestone responsible
|
guid
|
9924256A-739C-462b-AF15-E652A3B1B6EB
|
notifyResponsible
sent in body
|
Specifies whether to notify responsible about the milestone actions or not
|
Bool value
|
true
|
Sending data in application/json:
{
title:"New title",
deadline:"2011-03-23T14:27:14",
isKey:false,
status:"Open"
}
application/json
{
"status": 0,
"response": {
"ProjectOwner": {
"Id": "123",
"Title": "Sample project",
"Status": 0,
"IsPrivate": false
},
"Deadline": "2020-12-22T04:11:56.4458522Z",
"IsKey": false,
"IsNotify": false,
"ActiveTaskCount": 15,
"ClosedTaskCount": 5,
"CanEdit": false,
"CanDelete": false
}
}
text/xml
<result>
<status>0</status>
<response>
<ProjectOwner>
<Id>123</Id>
<Title>Sample project</Title>
<Status>0</Status>
<IsPrivate>False</IsPrivate>
</ProjectOwner>
<Deadline>2020-12-22T04:11:56.4458522Z</Deadline>
<IsKey>False</IsKey>
<IsNotify>False</IsNotify>
<ActiveTaskCount>15</ActiveTaskCount>
<ClosedTaskCount>5</ClosedTaskCount>
<CanEdit>False</CanEdit>
<CanDelete>False</CanDelete>
</response>
</result>