---
title: "Create a new milestone"
method: POST
path: "/milestone/{code}"
tags: ["milestones"]
---

# Create a new milestone

`POST /milestone/{code}`

This method allows to create a milestone in selected project.

## Path parameters

- `code` string, required

## Request body

- MilestoneCreate
  - `title` string, required
  - `description` string
  - `status` 'completed' | 'active'
  - `due_date` integer — unix timestamp

## Response `200`

A result.

- IdResponse
  - `status` boolean
  - `result` object
    - `id` integer

## Other responses

- `400` — Bad Request.
- `401` — Unauthorized.
- `403` — Forbidden.
- `404` — Not Found.
- `422` — Unprocessable Entity.
- `429` — Too Many Requests.

---

[API](https://skmtc.dev/qase/apis/qase-io-testops-api-v1.md) · [All operations](https://skmtc.dev/qase/apis/qase-io-testops-api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/qase/qase-io-testops-api-v1/revisions/12ddc644fac5/schema)
