Maintenance messages are managed using the Adminapp (or the Adminapp REST API) as shown in the following example.
The admin user of the Adminapp needs to have certain access rights in order to see the maintenance message editor. Please check the Access Control part of the Adminapp configuration for details.
In the overview screen, all currently configured messages are listed and a button to add new maintenance messages is presented: