# Enable or disable a service and its monitoring This function enables or disables a service and its monitoring. If the user only possesses the Access Control List (ACL), then this function can only act on the service. Endpoint: GET /configureservice Version: 11.134.0.5 Security: BasicAuth ## Query parameters: - `service` (string, required) The service to configure. For more information about each service, read our documentation. Enum: "apache_php_fpm", "cpanel-dovecot-solr", "cpanel_php_fpm", "cpanellogd", "cpdavd", "cphulkd", "cpsrvd", "crond", "dnsadmin", "exim", "exim-altport", "ftpd", "httpd", "imap", "ipaliases", "lmtp", "mailman", "mysql", "named", "nscd", "p0f", "pop", "postgresql", "queueprocd", "rsyslogd", "spamd", "sshd" - `enabled` (integer) Whether to enable the service. * — Enable. * — Disable. If you do not use this parameter, the function will change the enabled status of the service. Do use this function to disable the service. Enum: 0, 1 - `exim-altportnum` (string) A port or list of comma-separated ports on which Exim will listen for inbound connections. The function uses this parameter if you set as the parameter's value. Example: "26, 5000, 6000" - `monitored` (integer) Whether to monitor the service in WHM's interface (). * — Monitor. * — Do monitor. If you do not use this parameter, the function will change the monitoring status of the service. Enum: 0, 1 ## Response 200 fields (application/json): - `metadata` (object) - `metadata.command` (string) The method name called. Example: "configureservice" - `metadata.reason` (string) The reason the API function failed when the field is 0. This field may display a success message when a function succeeds. Example: "Enabled monitoring for mysql." - `metadata.result` (integer) * - Success * - Failed: Check the reason field for more details. Enum: 0, 1 - `metadata.version` (integer) The version of the API function. Example: 1