Skip to main content
MilestoneCreate a new milestone
TestMu AI
StatusCommunityBlog
Milestone

Create a new milestone

Endpoint to create a new milestone for a project.

POST
/api/v1/milestone
Create a new milestone
curl --request POST \
--url "https://test-manager-api.lambdatest.com//api/v1/milestone" \
--header "Authorization: Basic <encoded-value>" \
--header "Content-Type: application/json" \
--data '{
"project_id": "<project_id>",
"title": "<title>",
"description": "<description>",
"test_run_id": [],
"tags": [],
"start_at": "<start_at>",
"end_at": "<end_at>",
"owned_by": 0,
"milestone_id": "<milestone_id>"
}'
{
"message": "Milestone created successfully",
"type": "Success",
"id": "01JHN7P7PXFF4F85SPXDKTGXWG"
}

Authorizations

Authorizationstringheaderrequired

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json
project_idstringrequired

Unique identifier for the project.

titlestringrequired

Title of the milestone.

descriptionstring

Detailed description of the milestone.

test_run_idarray

List of associated test run IDs.

tagsarray

Tags associated with the milestone.

start_atstring<date-time>required

Start date and time of the milestone in the format YYYY-MM-DD HH:mm:ss.

end_atstring<date-time>required

End date and time of the milestone in the format YYYY-MM-DD HH:mm:ss.

owned_byintegerrequired

User ID of the milestone owner.

milestone_idstring

Unique identifier for the milestone.

Response

application/json

Successful creation of the milestone.

messagestring
typestring
idstring
Create a new milestone
curl --request POST \
--url "https://test-manager-api.lambdatest.com//api/v1/milestone" \
--header "Authorization: Basic <encoded-value>" \
--header "Content-Type: application/json" \
--data '{
"project_id": "<project_id>",
"title": "<title>",
"description": "<description>",
"test_run_id": [],
"tags": [],
"start_at": "<start_at>",
"end_at": "<end_at>",
"owned_by": 0,
"milestone_id": "<milestone_id>"
}'
{
"message": "Milestone created successfully",
"type": "Success",
"id": "01JHN7P7PXFF4F85SPXDKTGXWG"
}