Milestone›Create a new milestone
Milestone
Create a new milestone
Endpoint to create a new milestone for a project.
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": "01JEQSN8WQW76RM59X3KSBZYVH",
"title": "mile mi",
"description": "desc desc.",
"test_run_id": [
"01JF4TH6P7A9TCP2YPZWQX7E3Z"
],
"tags": [
"t01",
"t02"
],
"start_at": "2024-01-02T15:04:05.000Z",
"end_at": "2026-01-02T15:04:05.000Z",
"owned_by": 862914
}'
{
"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/jsonproject_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/jsonSuccessful creation of the 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": "01JEQSN8WQW76RM59X3KSBZYVH",
"title": "mile mi",
"description": "desc desc.",
"test_run_id": [
"01JF4TH6P7A9TCP2YPZWQX7E3Z"
],
"tags": [
"t01",
"t02"
],
"start_at": "2024-01-02T15:04:05.000Z",
"end_at": "2026-01-02T15:04:05.000Z",
"owned_by": 862914
}'
{
"message": "Milestone created successfully",
"type": "Success",
"id": "01JHN7P7PXFF4F85SPXDKTGXWG"
}