Project Users

GET /projects/{project_id}/handlers #

Get Project Users that can be assigned issues

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/handlers
GET /projects/{project_id}/users #

Get Project Users

Parameters

Name In Type Description
project_id required path integer The project ID e.g. 1
access_level query integer e.g. 25
include_access_levels query integer e.g. 0
page_size query integer
page query integer

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

Add or update a project user

Parameters

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

Request body required

user object
name string
access_level object
name string

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/users \
  -d '{
    "user": {
        "name": "string"
    },
    "access_level": {
        "name": "string"
    }
}'
Request body · application/json
{
    "user": {
        "name": "string"
    },
    "access_level": {
        "name": "string"
    }
}
PUT /projects/{project_id}/users #

Project Add-Update User

Parameters

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

Request body required

user object
name string
access_level object
name string

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 PUT \
  -H "Authorization: Bearer $MANTIS_TOKEN" \
  -H "Content-Type: application/json" \
  https://yourmantishubname.mantishub.io/api/rest/projects/1/users \
  -d '{
    "user": {
        "name": "string"
    },
    "access_level": {
        "name": "string"
    }
}'
Request body · application/json
{
    "user": {
        "name": "string"
    },
    "access_level": {
        "name": "string"
    }
}
DELETE /projects/{project_id}/users/{user_id} #

Project Delete User

Parameters

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

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/users/5