{
  "opencollection": "1.0.0",
  "info": {
    "name": "ButterflyMX Keychains API",
    "version": "v4"
  },
  "items": [
    {
      "info": {
        "name": "Keychains",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "create a custom keychain",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.butterflymx.com/v4/keychains/custom",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "create a custom keychain"
        },
        {
          "info": {
            "name": "create a delivery pass keychain",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.butterflymx.com/v4/keychains/delivery_pass",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "create a delivery pass keychain"
        },
        {
          "info": {
            "name": "create a one-time keychain",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.butterflymx.com/v4/keychains/one_time",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "create a one-time keychain"
        },
        {
          "info": {
            "name": "create a recurring keychain",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.butterflymx.com/v4/keychains/recurring",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "create a recurring keychain"
        },
        {
          "info": {
            "name": "list keychains",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.butterflymx.com/v4/keychains",
            "params": [
              {
                "name": "page",
                "value": "3",
                "type": "query",
                "description": "requested page"
              },
              {
                "name": "per",
                "value": "50",
                "type": "query",
                "description": "page size"
              },
              {
                "name": "q[name_eq]",
                "value": "Party",
                "type": "query",
                "description": "filter by exact match on name (case insensitive)"
              },
              {
                "name": "q[name_start]",
                "value": "Par",
                "type": "query",
                "description": "filter by name starts with (case insensitive)"
              },
              {
                "name": "q[tenant_id_eq]",
                "value": "123",
                "type": "query",
                "description": "filter by exact match on tenant id"
              },
              {
                "name": "q[tenant_id_in][]",
                "value": "123,456",
                "type": "query",
                "description": "filter by tenant id in list"
              },
              {
                "name": "q[unit_id_eq]",
                "value": "123",
                "type": "query",
                "description": "filter by exact match on unit id"
              },
              {
                "name": "q[unit_id_in][]",
                "value": "123,456",
                "type": "query",
                "description": "filter by unit id in list"
              },
              {
                "name": "q[starts_at_gteq]",
                "value": "2020-01-01T00:00:00Z",
                "type": "query",
                "description": "filter by starts at greater than or equal to"
              },
              {
                "name": "q[starts_at_lteq]",
                "value": "2020-01-01T00:00:00Z",
                "type": "query",
                "description": "filter by starts at less than or equal to"
              },
              {
                "name": "q[ends_at_gteq]",
                "value": "2020-01-01T00:00:00Z",
                "type": "query",
                "description": "filter by ends at greater than or equal to"
              },
              {
                "name": "q[ends_at_lteq]",
                "value": "2020-01-01T00:00:00Z",
                "type": "query",
                "description": "filter by ends at less than or equal to"
              },
              {
                "name": "q[building_id_eq]",
                "value": "123",
                "type": "query",
                "description": "filter by exact match on building id"
              },
              {
                "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": "**Keychains** and **Virtual Keys** provide a mechanism for people to\ngrant temporary access to a building, unit, access points or\nkey lockers.\n\nA **Keychain** is the configuration object for one or more\n**Virtual Keys**. It holds the duration, owner, and other\ninformation about the Virtual Keys attached to it. While the Virtual\nKeys contain the recipient information and usage statistics.\n\nThere are multiple types of Keychains available that provide different\naccess scheduling mechanisms for the "
        },
        {
          "info": {
            "name": "show keychain",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.butterflymx.com/v4/keychains/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "id"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "show keychain"
        },
        {
          "info": {
            "name": "delete keychain",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.butterflymx.com/v4/keychains/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "id"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "delete keychain"
        }
      ]
    }
  ],
  "bundled": true
}