Come join our live training webinar every other Wednesday at 11am PST and hear LogicMonitor experts explain best practices and answer common questions. We understand these are uncertain times, and we are here to help!
With LogicMonitor’s REST API you can programmatically add a new website group to your LogicMonitor account.
Add a new website group
HTTP Method:POST
URI: /service/groups
Request Parameters:
The following request adds a new website group to the api.logicmonitor.com account.
Request
curl --user 'apiUser:example' -H "Content-Type: application/json" -d '{"name":"newServiceGroup","description":"serviceGroupDescription","parentId":15}' -X POST "https://api.logicmonitor.com/santaba/rest/service/groups/"
Response
{ "status" : 200, "errmsg" : "OK", "data" : { "id" : 16, "name" : "newServiceGroup", "description" : "serviceGroupDescription", "disableAlerting" : false, "stopMonitoring" : false, "parentId" : 15, "alertStatus" : "none", "sdtStatus" : "none-none-none", "alertDisableStatus" : "none-none-none", "hasServicesDisabled" : false, "numOfServices" : 0, "userPermission" : "write", "serviceProperties" : [ ], "numOfDirectServices" : 0, "testLocation" : "{\"all\":true}", "fullPath" : "QA/Tests/newServiceGroup", "subGroups" : [ ] }
In This Article