{
  "opencollection": "1.0.0",
  "info": {
    "name": "xMatters REST Devices Groups API",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "basic",
      "username": "{{username}}",
      "password": "{{password}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Groups",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List groups",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{company}.{deployment}.xmatters.com/api/xm/1/groups"
          },
          "docs": "List groups"
        },
        {
          "info": {
            "name": "Create a group",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{company}.{deployment}.xmatters.com/api/xm/1/groups"
          },
          "docs": "Create a group"
        },
        {
          "info": {
            "name": "Get a specific group",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{company}.{deployment}.xmatters.com/api/xm/1/groups/:groupId",
            "params": [
              {
                "name": "groupId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get a specific group"
        },
        {
          "info": {
            "name": "Modify a group",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://{company}.{deployment}.xmatters.com/api/xm/1/groups/:groupId",
            "params": [
              {
                "name": "groupId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Modify a group"
        },
        {
          "info": {
            "name": "Delete a group",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://{company}.{deployment}.xmatters.com/api/xm/1/groups/:groupId",
            "params": [
              {
                "name": "groupId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Delete a group"
        },
        {
          "info": {
            "name": "List group members",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{company}.{deployment}.xmatters.com/api/xm/1/groups/:groupId/members",
            "params": [
              {
                "name": "groupId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "List group members"
        },
        {
          "info": {
            "name": "Add a member to a group",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{company}.{deployment}.xmatters.com/api/xm/1/groups/:groupId/members",
            "params": [
              {
                "name": "groupId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Add a member to a group"
        }
      ]
    }
  ],
  "bundled": true
}