Users

GET /users/me #

Get My User Info

Parameters

Name In Type Description
select query string Comma-separated list of user fields to return. e.g. id,name,real_name,email,access_level

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/users/me
POST /users #

Create a user

Request body required

password 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/users \
  -d '{
    "password": "string"
}'
Request body · application/json
{
    "password": "string"
}
GET /users/{id} #

Get User By Id

Parameters

Name In Type Description
id required path integer e.g. 1
select query string e.g. id,name,real_name,email,access_level

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/users/1
PATCH /users/{id} #

Update User

Parameters

Name In Type Description
id required path integer The user ID e.g. 5

Request body required

name string
real_name string
email string
access_level string
enabled boolean
protected 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/users/5 \
  -d '{
    "name": "string",
    "real_name": "string",
    "email": "string",
    "access_level": "string",
    "enabled": true,
    "protected": true
}'
Request body · application/json
{
    "name": "string",
    "real_name": "string",
    "email": "string",
    "access_level": "string",
    "enabled": true,
    "protected": true
}
DELETE /users/{id} #

Delete a user

Parameters

Name In Type Description
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/users/5
GET /users/username/{username} #

Get User By Username

Parameters

Name In Type Description
username required path string
select query string e.g. id,name,real_name,email

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/users/username/value
PUT /users/{user_id}/reset #

Reset user password

Parameters

Name In Type Description
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 PUT \
  -H "Authorization: Bearer $MANTIS_TOKEN" \
  https://yourmantishubname.mantishub.io/api/rest/users/5/reset