Perform a database integrity check
Performs a database integrity check. Note: This check may temporarily harm system performance. Minimum server version: 5.28.0 Local mode only: This endpoint is only available through local mode.
Clears the server busy (high load) flag
Marks the server as not having high load which re-enables non-critical services such as search, statuses and typing notifications. Minimum server version: 5.20 ##### Permissions Must have `manage_system` permission.
Recycle database connections
Recycle database connections by closing and reconnecting all connections to master and read replica databases. ##### Permissions Must have `manage_system` permission.
Download a zip file which contains helpful and useful information for troubleshooting your mattermost instance.
Download a zip file which contains helpful and useful information for troubleshooting your mattermost instance. Minimum server version: 5.32 ##### Permissions Must have any of the system console read permissions. ##### License Requires either a E10 or E20 license.
Get analytics
Get some analytics data about the system. This endpoint uses the old format, the `/analytics` route is reserved for the new format when it gets implemented. The returned JSON changes based on the `name` query parameter but is always key/value pairs. Minimum server version: 4.0 ##### Permissions Must have `manage_system` permission.
Get audits
Get a page of audits for all users on the system, selected with `page` and `per_page` query parameters. ##### Permissions Must have `manage_system` permission.
Get client license
Get a subset of the server license needed by the client. ##### Permissions No permission required but having the `manage_system` permission returns more information.
Get configuration made through environment variables
Retrieve a json object mirroring the server configuration where fields are set to true if the corresponding config setting is set through an environment variable. Settings that haven't been set through environment variables will be missing from the object. Minimum server version: 4.10 ##### Permissions Must have `manage_system` permission.
Get notices for logged in user in specified team
Will return appropriate product notices for current user in the team specified by teamId parameter. Minimum server version: 5.26 ##### Permissions Must be logged in.
Check system health
Check if the server is up and healthy based on the configuration setting `GoRoutineHealthThreshold`. If `GoRoutineHealthThreshold` and the number of goroutines on the server exceeds that threshold the server is considered unhealthy. If `GoRoutineHealthThreshold` is not set or the number of goroutines is below the threshold the server is considered healthy. Minimum server version: 3.10 ##### Permissions Must be logged in.
Get server busy expiry time.
Gets the timestamp corresponding to when the server busy flag will be automatically cleared. Minimum server version: 5.20 ##### Permissions Must have `manage_system` permission.
Get the warn metrics status (enabled or disabled)
Get the status of a set of metrics (enabled or disabled) from the Systems table. The returned JSON contains the metrics that we need to warn the admin on with regard to their status (we return the ones whose status is "true", which means that they are in a "warnable" state - e.g. a threshold has been crossed or some other condition has been fulfilled). Minimum server version: 5.26 ##### Permissions Must have `manage_system` permission.
Invalidate all the caches
Purge all the in-memory caches for the Mattermost server. This can have a temporary negative effect on performance while the caches are re-populated. ##### Permissions Must have `manage_system` permission.
Update notices as 'viewed'
Will mark the specified notices as 'viewed' by the logged in user. Minimum server version: 5.26 ##### Permissions Must be logged in.
Patch configuration
Submit configuration to patch. As of server version 4.8, the `PluginSettings.EnableUploads` setting cannot be modified by this endpoint. ##### Permissions Must have `manage_system` permission. Minimum server version: 5.20
Add log message
Add log messages to the server logs. ##### Permissions Users with `manage_system` permission can log ERROR or DEBUG messages. Logged in users can log ERROR or DEBUG messages when `ServiceSettings.EnableDeveloper` is `true` or just DEBUG messages when `false`. Non-logged in users can log ERROR or DEBUG messages when `ServiceSettings.EnableDeveloper` is `true` and cannot log when `false`.
Remove license file
Remove the license file from the server. This will disable all enterprise features. Minimum server version: 4.0 ##### Permissions Must have `manage_system` permission.
Request the license renewal link
Request the renewal link that would be used to start the license renewal process Minimum server version: 5.32 ##### Permissions Must have `sysconsole_write_about` permission.
Request and install a trial license for your server
Request and install a trial license for your server Minimum server version: 5.25 ##### Permissions Must have `manage_system` permission.
Restart the system after an upgrade from Team Edition to Enterprise Edition
It restarts the current running mattermost instance to execute the new Enterprise binary. Minimum server version: 5.27 ##### Permissions Must have `manage_system` permission.
Request trial license and acknowledge a warning of a metric status
Request a trial license and acknowledge a warning for the warn_metric_id metric crossing a threshold (or some similar condition being fulfilled) - sets the "ack" status for all the warn metrics in the system. Minimum server version: 5.28 ##### Permissions Must have `manage_system` permission.
Acknowledge a warning of a metric status
Acknowledge a warning for the warn_metric_id metric crossing a threshold (or some similar condition being fulfilled) - attempts to send an ack email to acknowledge@mattermost.com and sets the "ack" status for all the warn metrics in the system. Minimum server version: 5.26 ##### Permissions Must have `manage_system` permission.
Set the server busy (high load) flag
Marks the server as currently having high load which disables non-critical services such as search, statuses and typing notifications. Minimum server version: 5.20 ##### Permissions Must have `manage_system` permission.
Send a test email
Send a test email to make sure you have your email settings configured correctly. Optionally provide a configuration in the request body to test. If no valid configuration is present in the request body the current server configuration will be tested. ##### Permissions Must have `manage_system` permission.
Test AWS S3 connection
Send a test to validate if can connect to AWS S3. Optionally provide a configuration in the request body to test. If no valid configuration is present in the request body the current server configuration will be tested. ##### Permissions Must have `manage_system` permission. Minimum server version: 4.8
Checks the validity of a Site URL
Sends a Ping request to the mattermost server using the specified Site URL. ##### Permissions Must have `manage_system` permission. Minimum server version: 5.16
Get last trial license used
Get the last trial license used on the sevrer Minimum server version: 5.36 ##### Permissions Must have `manage_systems` permissions.
Update configuration
Submit a new configuration for the server to use. As of server version 4.8, the `PluginSettings.EnableUploads` setting cannot be modified by this endpoint. ##### Permissions Must have `manage_system` permission.
Stores that the Plugin Marketplace has been visited by at least an admin.
Stores the system-level status that specifies that at least an admin has visited the in-product Plugin Marketplace. Minimum server version: 5.33 ##### Permissions Must have `manage_system` permissions.
Executes an inplace upgrade from Team Edition to Enterprise Edition
It downloads the Mattermost Enterprise Edition of your current version and replace your current version with it. After the upgrade you need to restart the Mattermost server. Minimum server version: 5.27 ##### Permissions Must have `manage_system` permission.
Get the current status for the inplace upgrade from Team Edition to Enterprise Edition
It returns the percentage of completion of the current upgrade or the error if there is any. Minimum server version: 5.27 ##### Permissions Must have `manage_system` permission.
Upload license file
Upload a license to enable enterprise features. Minimum server version: 4.0 ##### Permissions Must have `manage_system` permission.