Projects

GET /projects #

Get all projects

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
POST /projects #

Create a project

Request body required

name string
status object
name string
description string
file_path string
view_state object
name string
enabled boolean

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 \
  -d '{
    "name": "string",
    "status": {
        "name": "string"
    },
    "description": "string",
    "file_path": "string",
    "view_state": {
        "name": "string"
    },
    "enabled": true
}'
Request body · application/json
{
    "name": "string",
    "status": {
        "name": "string"
    },
    "description": "string",
    "file_path": "string",
    "view_state": {
        "name": "string"
    },
    "enabled": true
}
GET /projects/{project_id} #

Get a project

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
PATCH /projects/{project_id} #

Update a project

Parameters

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

Request body required

id number
name string
enabled boolean
inherit_global number

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 \
  -d '{
    "id": 1,
    "name": "string",
    "enabled": true,
    "inherit_global": 1
}'
Request body · application/json
{
    "id": 1,
    "name": "string",
    "enabled": true,
    "inherit_global": 1
}
DELETE /projects/{project_id} #

Delete a project

Parameters

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

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
POST /projects/{project_id}/subprojects #

Add a sub-project

Parameters

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

Request body required

project object
name string
inherit_parent boolean

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 POST \
  -H "Authorization: Bearer $MANTIS_TOKEN" \
  -H "Content-Type: application/json" \
  https://yourmantishubname.mantishub.io/api/rest/projects/1/subprojects \
  -d '{
    "project": {
        "name": "string"
    },
    "inherit_parent": true
}'
Request body · application/json
{
    "project": {
        "name": "string"
    },
    "inherit_parent": true
}
PATCH /projects/{project_id}/subprojects/{subproject_id} #

Update a subproject

Parameters

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

Request body required

project object
name string
inherit_parent boolean

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 PATCH \
  -H "Authorization: Bearer $MANTIS_TOKEN" \
  -H "Content-Type: application/json" \
  https://yourmantishubname.mantishub.io/api/rest/projects/1/subprojects/2 \
  -d '{
    "project": {
        "name": "string"
    },
    "inherit_parent": true
}'
Request body · application/json
{
    "project": {
        "name": "string"
    },
    "inherit_parent": true
}
DELETE /projects/{project_id}/subprojects/{subproject_id} #

Delete a subproject relationship

Parameters

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

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/subprojects/2