HomeAPIMilestonesAdd

5.3. Add

URL: /project/{project_id}/milestones/add

Acceptable POST Parameters:

Name
Is Required?
 Description
Milestone.title Yes Title of the milestone
Milestone.start_date Yes Start date of the milestone
Milestone.due_date Yes Due date of the milestone
Milestone.responsible_user_id Yes ID of the responsible user for finishing this milestone

Example Request:

curl --data '{"data": {"Milestone": {"title": "New Milestone", "start_date":"2012-08-01", "due_date":"2012-08-14", "responsible_user_id": 2}}}' http://your-testcollab-url.com/index.php/project/1/milestones/add.json?API_KEY=yourapikey

Example Response:

{
    "appState": "/project/1/milestones/view/4",
    "data": {
        "created_id": "4"
    },
    "message": "The Milestone has been saved",
    "status": true
}

This page was: Helpful | Not Helpful
Test Case Management
Test Collab Support
Product Tour