Users

GET /plugins/ApiX/me/account #

Me account page

This operation is implemented by the ApiX me_account_page command.

Responses

  • 200 The operation completed successfully.
    []
  • 400 The request is invalid.
    message string required
    code integer
    localized string
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 401 Authentication is required or invalid.
    message string required
    code integer
    localized string
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 403 The authenticated user lacks permission.
    message string required
    code integer
    localized string
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 404 The requested resource was not found.
    message string required
    code integer
    localized string
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
cURL
curl -X GET \
  -H "Authorization: Bearer $MANTIS_TOKEN" \
  https://yourmantishubname.mantishub.io/api/rest/plugins/ApiX/me/account
PATCH /plugins/ApiX/me/password #

Me password update

Changes the authenticated user's password. Send both password_current and password; the command validates the current credential before applying the new one.

Request body

password_current string · password required Current password of the authenticated user.
password string · password required New password; it must satisfy the instance password rules.

Responses

  • 200 The operation completed successfully.
    []
  • 400 The request is invalid.
    message string required
    code integer
    localized string
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 401 Authentication is required or invalid.
    message string required
    code integer
    localized string
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 403 The authenticated user lacks permission.
    message string required
    code integer
    localized string
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 404 The requested resource was not found.
    message string required
    code integer
    localized string
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
cURL
curl -X PATCH \
  -H "Authorization: Bearer $MANTIS_TOKEN" \
  -H "Content-Type: application/json" \
  https://yourmantishubname.mantishub.io/api/rest/plugins/ApiX/me/password \
  -d '{
    "password_current": "string",
    "password": "string"
}'
Request body · application/json
{
    "password_current": "string",
    "password": "string"
}
GET /plugins/ApiX/me/tokens #

Me tokens page

This operation is implemented by the ApiX me_tokens_page command.

Responses

  • 200 The operation completed successfully.
    []
  • 400 The request is invalid.
    message string required
    code integer
    localized string
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 401 Authentication is required or invalid.
    message string required
    code integer
    localized string
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 403 The authenticated user lacks permission.
    message string required
    code integer
    localized string
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 404 The requested resource was not found.
    message string required
    code integer
    localized string
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
cURL
curl -X GET \
  -H "Authorization: Bearer $MANTIS_TOKEN" \
  https://yourmantishubname.mantishub.io/api/rest/plugins/ApiX/me/tokens
GET /plugins/ApiX/user-settings #

User settings page

This operation is implemented by the ApiX user_settings_page command.

Responses

  • 200 The operation completed successfully.
    []
  • 400 The request is invalid.
    message string required
    code integer
    localized string
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 401 Authentication is required or invalid.
    message string required
    code integer
    localized string
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 403 The authenticated user lacks permission.
    message string required
    code integer
    localized string
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 404 The requested resource was not found.
    message string required
    code integer
    localized string
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
cURL
curl -X GET \
  -H "Authorization: Bearer $MANTIS_TOKEN" \
  https://yourmantishubname.mantishub.io/api/rest/plugins/ApiX/user-settings
PATCH /plugins/ApiX/user-settings #

User settings update

Updates the authenticated user's self-service settings. The body is a map of supported setting names to values; unsupported or malformed settings are rejected.

Request body

configs object[] required Non-empty list of permitted self-service settings.
option string required Allowed setting name. The server determines the permitted option set.
value string required New value for the selected setting.

Responses

  • 200 The operation completed successfully.
    []
  • 400 The request is invalid.
    message string required
    code integer
    localized string
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 401 Authentication is required or invalid.
    message string required
    code integer
    localized string
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 403 The authenticated user lacks permission.
    message string required
    code integer
    localized string
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 404 The requested resource was not found.
    message string required
    code integer
    localized string
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
cURL
curl -X PATCH \
  -H "Authorization: Bearer $MANTIS_TOKEN" \
  -H "Content-Type: application/json" \
  https://yourmantishubname.mantishub.io/api/rest/plugins/ApiX/user-settings \
  -d '{
    "configs": [
        {
            "option": "string",
            "value": "string"
        }
    ]
}'
Request body · application/json
{
    "configs": [
        {
            "option": "string",
            "value": "string"
        }
    ]
}
POST /plugins/ApiX/users #

User create

Creates a user through MantisBT's user-create workflow. The body supplies the account definition accepted by core, including username, email, access level, enabled state, and optional preferences.

Request body

username string Unique account username.
email string · email User email address.
realname string Display name.
password string · password Account password when creating or changing a user.
access_level integer Global access level.
enabled boolean Whether the account is enabled.
protected boolean Whether the account is protected from ordinary administration.
language string Preferred language.
timezone string Preferred timezone.
client_preferred boolean Whether the user prefers the client-specific interface.
avatar string Avatar data accepted by the configured avatar integration.
notify_user boolean Whether to notify the user about the update.
password_current string · password Current password required for applicable password changes.

Responses

  • 200 The operation completed successfully.
    []
  • 400 The request is invalid.
    message string required
    code integer
    localized string
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 401 Authentication is required or invalid.
    message string required
    code integer
    localized string
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 403 The authenticated user lacks permission.
    message string required
    code integer
    localized string
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 404 The requested resource was not found.
    message string required
    code integer
    localized string
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
cURL
curl -X POST \
  -H "Authorization: Bearer $MANTIS_TOKEN" \
  -H "Content-Type: application/json" \
  https://yourmantishubname.mantishub.io/api/rest/plugins/ApiX/users \
  -d '{
    "username": "string",
    "email": "string",
    "realname": "string",
    "password": "string",
    "access_level": 1,
    "enabled": true,
    "protected": true,
    "language": "string",
    "timezone": "string",
    "client_preferred": true,
    "avatar": "string",
    "notify_user": true,
    "password_current": "string"
}'
Request body · application/json
{
    "username": "string",
    "email": "string",
    "realname": "string",
    "password": "string",
    "access_level": 1,
    "enabled": true,
    "protected": true,
    "language": "string",
    "timezone": "string",
    "client_preferred": true,
    "avatar": "string",
    "notify_user": true,
    "password_current": "string"
}
GET /plugins/ApiX/users/pages/create #

User create page

This operation is implemented by the ApiX user_create_page command.

Responses

  • 200 The operation completed successfully.
    []
  • 400 The request is invalid.
    message string required
    code integer
    localized string
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 401 Authentication is required or invalid.
    message string required
    code integer
    localized string
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 403 The authenticated user lacks permission.
    message string required
    code integer
    localized string
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 404 The requested resource was not found.
    message string required
    code integer
    localized string
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
cURL
curl -X GET \
  -H "Authorization: Bearer $MANTIS_TOKEN" \
  https://yourmantishubname.mantishub.io/api/rest/plugins/ApiX/users/pages/create
GET /plugins/ApiX/users/{user_id} #

User get

Returns a user by numeric ID or username. Use select to limit the returned user fields; access to disabled users and sensitive fields follows MantisBT permissions.

Parameters

Name In Type Description
user_id required path string ApiX user_id path parameter.

Responses

  • 200 The operation completed successfully.
    []
  • 400 The request is invalid.
    message string required
    code integer
    localized string
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 401 Authentication is required or invalid.
    message string required
    code integer
    localized string
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 403 The authenticated user lacks permission.
    message string required
    code integer
    localized string
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 404 The requested resource was not found.
    message string required
    code integer
    localized string
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
cURL
curl -X GET \
  -H "Authorization: Bearer $MANTIS_TOKEN" \
  https://yourmantishubname.mantishub.io/api/rest/plugins/ApiX/users/value
PATCH /plugins/ApiX/users/{user_id} #

User update

Updates a user through MantisBT's user-update workflow. The body supports account fields such as language, timezone, client_preferred, avatar, and notification settings; password changes require the current password where applicable.

Parameters

Name In Type Description
user_id required path string ApiX user_id path parameter.

Request body

username string Unique account username.
email string · email User email address.
realname string Display name.
password string · password Account password when creating or changing a user.
access_level integer Global access level.
enabled boolean Whether the account is enabled.
protected boolean Whether the account is protected from ordinary administration.
language string Preferred language.
timezone string Preferred timezone.
client_preferred boolean Whether the user prefers the client-specific interface.
avatar string Avatar data accepted by the configured avatar integration.
notify_user boolean Whether to notify the user about the update.
password_current string · password Current password required for applicable password changes.

Responses

  • 200 The operation completed successfully.
    []
  • 400 The request is invalid.
    message string required
    code integer
    localized string
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 401 Authentication is required or invalid.
    message string required
    code integer
    localized string
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 403 The authenticated user lacks permission.
    message string required
    code integer
    localized string
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 404 The requested resource was not found.
    message string required
    code integer
    localized string
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
cURL
curl -X PATCH \
  -H "Authorization: Bearer $MANTIS_TOKEN" \
  -H "Content-Type: application/json" \
  https://yourmantishubname.mantishub.io/api/rest/plugins/ApiX/users/value \
  -d '{
    "username": "string",
    "email": "string",
    "realname": "string",
    "password": "string",
    "access_level": 1,
    "enabled": true,
    "protected": true,
    "language": "string",
    "timezone": "string",
    "client_preferred": true,
    "avatar": "string",
    "notify_user": true,
    "password_current": "string"
}'
Request body · application/json
{
    "username": "string",
    "email": "string",
    "realname": "string",
    "password": "string",
    "access_level": 1,
    "enabled": true,
    "protected": true,
    "language": "string",
    "timezone": "string",
    "client_preferred": true,
    "avatar": "string",
    "notify_user": true,
    "password_current": "string"
}
PUT /plugins/ApiX/users/{user_id}/impersonate #

User impersonate

Starts an impersonated session for the target user. This administrative operation is permission-gated and changes the authenticated user context; use it only when the caller is authorized to impersonate that account.

Parameters

Name In Type Description
user_id required path string ApiX user_id path parameter.

Responses

  • 200 The operation completed successfully.
    []
  • 400 The request is invalid.
    message string required
    code integer
    localized string
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 401 Authentication is required or invalid.
    message string required
    code integer
    localized string
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 403 The authenticated user lacks permission.
    message string required
    code integer
    localized string
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 404 The requested resource was not found.
    message string required
    code integer
    localized string
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
cURL
curl -X PUT \
  -H "Authorization: Bearer $MANTIS_TOKEN" \
  https://yourmantishubname.mantishub.io/api/rest/plugins/ApiX/users/value/impersonate
GET /plugins/ApiX/users/{user_id}/pages/edit #

User edit page

This operation is implemented by the ApiX user_edit_page command.

Parameters

Name In Type Description
user_id required path string ApiX user_id path parameter.

Responses

  • 200 The operation completed successfully.
    []
  • 400 The request is invalid.
    message string required
    code integer
    localized string
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 401 Authentication is required or invalid.
    message string required
    code integer
    localized string
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 403 The authenticated user lacks permission.
    message string required
    code integer
    localized string
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 404 The requested resource was not found.
    message string required
    code integer
    localized string
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
cURL
curl -X GET \
  -H "Authorization: Bearer $MANTIS_TOKEN" \
  https://yourmantishubname.mantishub.io/api/rest/plugins/ApiX/users/value/pages/edit
POST /plugins/ApiX/users/{user_id}/projects #

Project add users

This operation is implemented by the ApiX project_add_users command.

Parameters

Name In Type Description
user_id required path string ApiX user_id path parameter.

Request body

project_ids string[] required Project IDs to which the user is added.
access_level string required Access level assigned to the user in each project.

Responses

  • 200 The operation completed successfully.
    []
  • 400 The request is invalid.
    message string required
    code integer
    localized string
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 401 Authentication is required or invalid.
    message string required
    code integer
    localized string
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 403 The authenticated user lacks permission.
    message string required
    code integer
    localized string
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 404 The requested resource was not found.
    message string required
    code integer
    localized string
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
cURL
curl -X POST \
  -H "Authorization: Bearer $MANTIS_TOKEN" \
  -H "Content-Type: application/json" \
  https://yourmantishubname.mantishub.io/api/rest/plugins/ApiX/users/value/projects \
  -d '{
    "project_ids": [],
    "access_level": "string"
}'
Request body · application/json
{
    "project_ids": [],
    "access_level": "string"
}
PUT /plugins/ApiX/users/{user_id}/reset #

User reset

Resets the target user's account state using the core reset workflow. This administrative operation does not accept a replacement password in the path.

Parameters

Name In Type Description
user_id required path string ApiX user_id path parameter.

Responses

  • 200 The operation completed successfully.
    []
  • 400 The request is invalid.
    message string required
    code integer
    localized string
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 401 Authentication is required or invalid.
    message string required
    code integer
    localized string
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 403 The authenticated user lacks permission.
    message string required
    code integer
    localized string
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 404 The requested resource was not found.
    message string required
    code integer
    localized string
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
cURL
curl -X PUT \
  -H "Authorization: Bearer $MANTIS_TOKEN" \
  https://yourmantishubname.mantishub.io/api/rest/plugins/ApiX/users/value/reset