Project Versions

GET /projects/{project_id}/versions/{version_id} #

Get a Project Version

Parameters

Name In Type Description
project_id required path integer The project ID e.g. 1
version_id required path integer e.g. 18

Responses

  • 200 Success X-Mantis-Username X-Mantis-LoginMethod X-Mantis-Version
  • 400 Bad Request
  • 404 Entity not found
cURL
curl -X GET \
  -H "Authorization: Bearer $MANTIS_TOKEN" \
  https://yourmantishubname.mantishub.io/api/rest/projects/1/versions/18
PATCH /projects/{project_id}/versions/{version_id} #

Update project version

Parameters

Name In Type Description
project_id required path integer The project ID e.g. 1
version_id required path integer e.g. 8

Request body required

obsolete boolean

Responses

  • 200 Success X-Mantis-Username X-Mantis-LoginMethod X-Mantis-Version
  • 400 Bad Request
  • 404 Entity not found
cURL
curl -X PATCH \
  -H "Authorization: Bearer $MANTIS_TOKEN" \
  -H "Content-Type: application/json" \
  https://yourmantishubname.mantishub.io/api/rest/projects/1/versions/8 \
  -d '{
    "obsolete": true
}'
Request body · application/json
{
    "obsolete": true
}
DELETE /projects/{project_id}/versions/{version_id} #

Delete a project version

Parameters

Name In Type Description
project_id required path integer The project ID e.g. 1
version_id required path integer

Responses

  • 204 Operation completed successfully with no response body X-Mantis-Username X-Mantis-LoginMethod X-Mantis-Version
  • 400 Bad Request
  • 404 Entity not found
cURL
curl -X DELETE \
  -H "Authorization: Bearer $MANTIS_TOKEN" \
  https://yourmantishubname.mantishub.io/api/rest/projects/1/versions/1
GET /projects/{project_id}/versions #

Get Project Versions

Parameters

Name In Type Description
project_id required path integer The project ID e.g. 1

Responses

  • 200 Success X-Mantis-Username X-Mantis-LoginMethod X-Mantis-Version
  • 400 Bad Request
  • 404 Entity not found
cURL
curl -X GET \
  -H "Authorization: Bearer $MANTIS_TOKEN" \
  https://yourmantishubname.mantishub.io/api/rest/projects/1/versions
POST /projects/{project_id}/versions #

Create a project version

Parameters

Name In Type Description
project_id required path integer The project ID e.g. 1

Request body required

name string
description string
released boolean
obsolete boolean
timestamp string

Responses

  • 201 Resource created successfully X-Mantis-Username X-Mantis-LoginMethod X-Mantis-Version
  • 400 Bad Request
  • 404 Entity not found
cURL
curl -X POST \
  -H "Authorization: Bearer $MANTIS_TOKEN" \
  -H "Content-Type: application/json" \
  https://yourmantishubname.mantishub.io/api/rest/projects/1/versions \
  -d '{
    "name": "string",
    "description": "string",
    "released": true,
    "obsolete": true,
    "timestamp": "string"
}'
Request body · application/json
{
    "name": "string",
    "description": "string",
    "released": true,
    "obsolete": true,
    "timestamp": "string"
}