Adds a new milestone using the parameters (project ID, milestone title, deadline, etc) specified in the request.
Name | Description | Type | Example |
id
sent in url
|
Project ID | number | 1234 |
title
sent in body
|
Milestone title | string | some text |
deadline
sent in body
|
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 | Bool value | true |
isNotify
sent in body
|
Specifies whether to remind me 48 hours before the milestone due date or not | Bool value | true |
description
sent in body
|
Milestone description | string | some text |
responsible
sent in body
|
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 |
POST api/2.0/project/1234/milestone Host: yourportal.onlyoffice.com Content-Type: application/json Accept: application/json { "title": "some text", "deadline": "2008-04-10T06-30-00.000Z", "isKey": true, "isNotify": true, "description": "some text", "responsible": "9924256A-739C-462b-AF15-E652A3B1B6EB", "notifyResponsible": true }
Added milestone
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>