{
  "opencollection": "1.0.0",
  "info": {
    "name": "ButterflyMX Access groups API",
    "version": "v4"
  },
  "items": [
    {
      "info": {
        "name": "Access groups",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Add tenants to access group",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.butterflymx.com/v4/access_groups/:id/tenants",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Add tenants to access group"
        },
        {
          "info": {
            "name": "Remove tenants from access group",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.butterflymx.com/v4/access_groups/:id/tenants/bulk_destroy",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Remove tenants from access group"
        },
        {
          "info": {
            "name": "Add units to access group",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.butterflymx.com/v4/access_groups/:id/units",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Add units to access group"
        },
        {
          "info": {
            "name": "Remove units from access group",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.butterflymx.com/v4/access_groups/:id/units/bulk_destroy",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Remove units from access group"
        },
        {
          "info": {
            "name": "list access groups",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.butterflymx.com/v4/access_groups",
            "params": [
              {
                "name": "page",
                "value": "3",
                "type": "query",
                "description": "requested page"
              },
              {
                "name": "per",
                "value": "50",
                "type": "query",
                "description": "page size"
              },
              {
                "name": "q[name_eq]",
                "value": "Front Door",
                "type": "query",
                "description": "filter by exact match on name (case insensitive)"
              },
              {
                "name": "q[name_start]",
                "value": "Front",
                "type": "query",
                "description": "filter by name starts with (case insensitive)"
              },
              {
                "name": "q[building_id_eq]",
                "value": "123",
                "type": "query",
                "description": "filter by exact match on building_id (case insensitive)"
              },
              {
                "name": "q[building_id_in][]",
                "value": "123,456",
                "type": "query",
                "description": "filter by building id in list"
              },
              {
                "name": "q[id_in][]",
                "value": "123,456",
                "type": "query",
                "description": "filter by id in list"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "**Access Group** access lets you grant certain tenants and building staff\n access to different parts of your property at different times.\n"
        },
        {
          "info": {
            "name": "show access group",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.butterflymx.com/v4/access_groups/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "id"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "show access group"
        }
      ]
    }
  ],
  "bundled": true
}