# Updates a milestone template for the template.

PUT https://api.awork.com/api/v1/projecttemplates/{projectTemplateId}/milestones/{milestoneId}

Updates a milestone template for the template. The submitted dates and status replace the existing values.

<Check title="Required Permissions" icon="key">The user must be an admin or have `project-manage-config:write` permissions.</Check>

## Request example

```sh
curl -X PUT --globoff 'https://api.awork.com/api/v1/projecttemplates/{projectTemplateId}/milestones/{milestoneId}' \
  -H 'Authorization: Bearer <token>' \
  -H 'Content-Type: application/json' \
  --data '{
  "name": "Internal Review",
  "color": "green",
  "relativeDueDate": 7
}'
```

- path parameter `projectTemplateId`: string (required). The id of the project template.

- path parameter `milestoneId`: string (required). The id of the milestone.

## Request body (application/json)

- `name`: string or null

- `color`: string or null

- `relativeDueDate`: integer

## Response 200

OK

application/json

```json
{
  "name": "Internal Review",
  "color": "green",
  "relativeDueDate": 7,
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "projectTemplateId": "123e4567-e89b-12d3-a456-426614174000",
  "createdOn": "2026-01-15T09:30:00Z",
  "createdBy": "123e4567-e89b-12d3-a456-426614174000",
  "updatedOn": "2026-01-15T09:30:00Z",
  "updatedBy": "123e4567-e89b-12d3-a456-426614174000"
}
```
