# Edit Service Monitor API This API allows you to edit the details of the service monitors. ## Syntax **By Display Name:** ``` https://[HOST]:[PORT]/AppManager/xml/EditMonitor?apikey=[APIKEY]&type=Service Monitoring&displayname=[DISPLAYNAME]&newdisplayname=[DISPLAYNAME]&host=[SERVICEHOST]&port=[SERVICEPORT]&timeout=[TIMEOUT]&pollInterval=[pollInterval]&command=[COMMAND]&search=[SEARCH] ``` **By Resource ID:** ``` https://[HOST]:[PORT]/AppManager/xml/EditMonitor?apikey=[APIKEY]&type=Service Monitoring&resourceid=[RESOURCEID]&newdisplayname=[NEWDISPLAYNAME]&host=[SERVICEHOST]&port=[SERVICEPORT]&timeout=[TIMEOUT]&pollInterval=[pollInterval]&command=[COMMAND]&search=[SEARCH] ``` **Supported HTTP methods:** POST **Allowed roles:** Administrator ## Request Parameters | Field | Description | |---|---| | host | The hostname or IP Address of the machine on which the service is running. | | port | The port number on which the service is running. | | timeout | The timeout value of the monitored service, in seconds. | | command | The command that will be executed after connecting to the port. | | search | The string that has to be searched after executing the command | | [Other Common APIs](https://www.manageengine.com/products/applications_manager/help/edit-monitor-api.html) | | ## Example Requests - ``` https://apm-prod-server:8443/AppManager/xml/EditMonitor?apikey=aaaaaabbbbbbccccccddddddeeeeee&type=Service Monitoring&resourceid=10000116&newdisplayname=zoho&host=servicehost&port=9090&timeout=10 ``` - ``` https://apm-prod-server:8443/AppManager/xml/EditMonitor?apikey=aaaaaabbbbbbccccccddddddeeeeee&type=Service Monitoring&resourceid=10000116&command=GET / HTTP1.1&host=servicehost&port=9090&timeout=10 ``` - ``` https://apm-prod-server:8443/AppManager/xml/EditMonitor?apikey=aaaaaabbbbbbccccccddddddeeeeee&type=Service Monitoring&resourceid=10000116&search=h&host=servicehost&port=9090&timeout=10 ``` - ``` https://apm-prod-server:8443/AppManager/xml/EditMonitor?apikey=aaaaaabbbbbbccccccddddddeeeeee&type=Service Monitoring&resourceid=10000116&pollInterval=10&search=&command=GET/HTTP1.0&newdisplayname=zoho&host=servicehost&port=9090&timeout=10 ```