Add New Milestone
POST/api/milestones
Headers
| Field | Type | Description |
|---|---|---|
| authtoken | String | Authentication token, generated from admin area |
Parameters
| Field | Type | Description |
|---|---|---|
| title | string | Mandatory Milestone title |
| project_id | number | Mandatory Project ID |
| due_date | string | Mandatory Due date (Y-m-d) |
| description | string | optional Optional Milestone description |
curl -X POST "https://yoursite.com/api/milestones" \
-H "authtoken: YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "title": "...", "project_id": "...", "due_date": "..." }' Success-Response:
HTTP/1.1 201 Created
{
"status": 200,
"messages": {"success": "Milestone add success"},
"id": 1
}