---
title: "Creates a new milestone template for the given project template."
method: POST
path: "/projecttemplates/{projectTemplateId}/milestones"
tags: ["projectMilestoneTemplates"]
---

# Creates a new milestone template for the given project template.

`POST /projecttemplates/{projectTemplateId}/milestones`

<Check title="Required Permissions" icon="key">The user must be an admin or have `project-manage-config:write` permissions.</Check>

## Path parameters

- `projectTemplateId` string, uuid, required

## Headers

- `Authorization` string, required

## Request body

- ProjectMilestoneTemplateForm
  - `name` string, nullable — The name of the milestone.
  - `color` string, nullable — The color of the milestone.
  - `relativeDueDate` integer — Relative amount of days the milestone is due after the project creation date when a project gets created with the corresponding project template.

## Response `200`

OK

- ProjectMilestoneTemplate
  - `name` string, nullable — The name of the milestone.
  - `color` string, nullable — The color of the milestone.
  - `relativeDueDate` integer — Relative amount of days the milestone is due after the project creation date when a project gets created with the corresponding project template.
  - `id` string, uuid
  - `projectTemplateId` string, uuid
  - `createdOn` string, date-time — The date this entity was created.
  - `createdBy` string, uuid — The id of the user who created this entity.
  - `updatedOn` string, date-time — The date this entity was last modified.
  - `updatedBy` string, uuid — The id of the user who last modified this entity.

---

[API](https://skmtc.net/awork-io/apis/api-v1-reference.md) · [All operations](https://skmtc.net/awork-io/apis/api-v1-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/awork-io/api-v1-reference/versions/f784a53f60df/schema)
