Add New Milestone

POST/api/milestones

Headers

FieldTypeDescription
authtoken String Authentication token, generated from admin area

Parameters

FieldTypeDescription
project_id String Mandatory project id.
name String Mandatory Milestone Name.
due_date Date Mandatory Milestone Due date.
description String optional Optional Milestone Description.
description_visible_to_customer String optional Show description to customer.
milestone_order String optional Optional Milestone Order.
curl -X POST "https://yoursite.com/api/milestones" \
  -H "authtoken: YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "project_id": "...", "name": "...", "due_date": "..." }'

Success-Response:

HTTP/1.1 200 OK
{
  "status": true,
  "message": "Milestone add successful."
}

Error-Response:

HTTP/1.1 404 Not Found
{
  "status": false,
  "message": "Milestone add fail."
}
MethodPOST
Path/api/milestones
GroupMilestones
Sincev0.0.0
Defined inmodules/api/controllers/Milestones.php