Configs

GET /config #

Get Configuration Option

Parameters

Name In Type Description
X-Mantis-Username header string Username to impersonate for this request. Requires an authorized API token.
option[] required query string
project_id query integer
user_id query integer

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/config?option%5B%5D=value
PATCH /config #

Set Configs

Parameters

Name In Type Description
X-Mantis-Username header string Username to impersonate for this request. Requires an authorized API token.

Request body required

project object
name string
configs object[]
option string
value string

Responses

  • 200 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.
  • 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/config \
  -d '{
    "project": {
        "name": "string"
    },
    "configs": [
        {
            "option": "string",
            "value": "string"
        }
    ]
}'
Request body · application/json
{
    "project": {
        "name": "string"
    },
    "configs": [
        {
            "option": "string",
            "value": "string"
        }
    ]
}