Project Versions

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

Get a Project Version

Parameters

Name In Type Description
id required path integer The project ID e.g. 1
version_id required path integer e.g. 18
X-Mantis-Username header string Username to impersonate for this request. Requires an authorized API token.

Responses

  • 200 Success ETag X-Mantis-Username X-Mantis-LoginMethod X-Mantis-Version
    "string"
  • 400 Bad Request
  • 401 Authentication is required or the supplied API token is invalid. WWW-Authenticate
  • 403 The authenticated user is not authorized for this operation, impersonation, or API access level.
  • 404 Entity not found
  • 503 MantisHub is temporarily unavailable and cannot process API requests.
cURL
curl -X GET \
  -H "Authorization: Bearer $MANTIS_TOKEN" \
  https://yourmantishubname.mantishub.io/api/rest/projects/1/versions/18
PATCH /projects/{id}/versions/{version_id} #

Update project version

Parameters

Name In Type Description
id required path integer The project ID e.g. 1
version_id required path integer e.g. 8
X-Mantis-Username header string Username to impersonate for this request. Requires an authorized API token.

Request body required

name string
description string
released boolean
obsolete boolean
timestamp string · date-time

Responses

  • 200 Success ETag X-Mantis-Username X-Mantis-LoginMethod X-Mantis-Version
    "string"
  • 400 Bad Request
  • 401 Authentication is required or the supplied API token is invalid. WWW-Authenticate
  • 403 The authenticated user is not authorized for this operation, impersonation, or API access level.
  • 404 Entity not found
  • 503 MantisHub is temporarily unavailable and cannot process API requests.
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 '{
    "name": "string",
    "description": "string",
    "released": true,
    "obsolete": true,
    "timestamp": "string"
}'
Request body · application/json
{
    "name": "string",
    "description": "string",
    "released": true,
    "obsolete": true,
    "timestamp": "string"
}
DELETE /projects/{id}/versions/{version_id} #

Delete a project version

Parameters

Name In Type Description
id required path integer The project ID e.g. 1
version_id required path integer
X-Mantis-Username header string Username to impersonate for this request. Requires an authorized API token.

Responses

  • 204 Operation completed successfully with no response body X-Mantis-Username X-Mantis-LoginMethod X-Mantis-Version
  • 400 Bad Request
  • 401 Authentication is required or the supplied API token is invalid. WWW-Authenticate
  • 403 The authenticated user is not authorized for this operation, impersonation, or API access level.
  • 404 Entity not found
  • 503 MantisHub is temporarily unavailable and cannot process API requests.
cURL
curl -X DELETE \
  -H "Authorization: Bearer $MANTIS_TOKEN" \
  https://yourmantishubname.mantishub.io/api/rest/projects/1/versions/1
GET /projects/{id}/versions #

Get Project Versions

Parameters

Name In Type Description
id required path integer The project ID e.g. 1
X-Mantis-Username header string Username to impersonate for this request. Requires an authorized API token.

Responses

  • 200 Success ETag X-Mantis-Username X-Mantis-LoginMethod X-Mantis-Version
    "string"
  • 400 Bad Request
  • 401 Authentication is required or the supplied API token is invalid. WWW-Authenticate
  • 403 The authenticated user is not authorized for this operation, impersonation, or API access level.
  • 404 Entity not found
  • 503 MantisHub is temporarily unavailable and cannot process API requests.
cURL
curl -X GET \
  -H "Authorization: Bearer $MANTIS_TOKEN" \
  https://yourmantishubname.mantishub.io/api/rest/projects/1/versions
POST /projects/{id}/versions #

Create a project version

Parameters

Name In Type Description
id required path integer The project ID e.g. 1
X-Mantis-Username header string Username to impersonate for this request. Requires an authorized API token.

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
    "string"
  • 400 Bad Request
  • 401 Authentication is required or the supplied API token is invalid. WWW-Authenticate
  • 403 The authenticated user is not authorized for this operation, impersonation, or API access level.
  • 404 Entity not found
  • 503 MantisHub is temporarily unavailable and cannot process API requests.
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"
}