Configs

GET /config #

Get Configuration Option

Parameters

Name In Type Description
option[] required query string
project_id query integer
user_id 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/config?option%5B%5D=value
PATCH /config #

Set Configs

Request body required

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

Responses

  • 200 Success X-Mantis-Username X-Mantis-LoginMethod X-Mantis-Version
  • 400 Bad Request
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"
        }
    ]
}