Skip to content

Enabling the MantisBT REST API

Richard Moss edited this page Jul 10, 2017 · 1 revision

By default, the REST API of a MantisBT installation is not enabled for external use.

To enable the API:

  • Open the /config/config_inc.php file from your MantisBT installation in a text editor
  • Add the line $g_webservice_rest_enabled = ON; somewhere in the file
  • Save the changes; the API is now enabled

To disable the API just delete the line or set the value to OFF

A full list of variables you can change (there are a LOT) can be found in /config_defaults_inc.php. However, you shouldn't modify this file directly - copy the values you want to change from here to config_inc.php.

Clone this wiki locally