# Update a Milestone

`PUT /api/milestones/{id}`



- **Group:** Milestones
- **Since:** v0.0.0
- **Authentication:** `authtoken` header, created under Setup > API > API Management
- **HTML version:** /apiguide/milestones/put-milestone/

## Headers

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `authtoken` | String | **required** | Authentication token, generated from admin area |

## Parameters

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `project_id` | String | **required** | Mandatory project id. |
| `name` | String | **required** | Mandatory Milestone Name. |
| `due_date` | Date | **required** | 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. |

## Example request

```bash
curl -X PUT "https://yoursite.com/api/milestones/123" \
  -H "authtoken: YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "project_id": "...", "name": "...", "due_date": "..." }'
```

## Success response

### Success-Response:

```json
HTTP/1.1 200 OK
{
  "status": true,
  "message": "Milestone Update Successful."
}
```

## Error responses

### Error-Response:

```json
HTTP/1.1 404 Not Found
{
  "status": false,
  "message": "Milestone Update Fail."
}
```

---

Perfex CRM REST API by Themesic Interactive. Full reference: /apiguide/
