{
  "opencollection": "1.0.0",
  "info": {
    "name": "Adafruit IO REST Activities Blocks API",
    "version": "2.0.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "X-AIO-Key",
      "value": "{{X-AIO-Key}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Blocks",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "All blocks for current user",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://io.adafruit.com/api/v2/:username/dashboards/:dashboard_id/blocks",
            "params": [
              {
                "name": "username",
                "value": "",
                "type": "path",
                "description": "a valid username string"
              },
              {
                "name": "dashboard_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "The Blocks endpoint returns information about the user's blocks.\n"
        },
        {
          "info": {
            "name": "Create a new Block",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://io.adafruit.com/api/v2/:username/dashboards/:dashboard_id/blocks",
            "params": [
              {
                "name": "username",
                "value": "",
                "type": "path",
                "description": "a valid username string"
              },
              {
                "name": "dashboard_id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a new Block"
        },
        {
          "info": {
            "name": "Returns Block based on ID",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://io.adafruit.com/api/v2/:username/dashboards/:dashboard_id/blocks/:id",
            "params": [
              {
                "name": "username",
                "value": "",
                "type": "path",
                "description": "a valid username string"
              },
              {
                "name": "dashboard_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Returns Block based on ID"
        },
        {
          "info": {
            "name": "Replace an existing Block",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://io.adafruit.com/api/v2/:username/dashboards/:dashboard_id/blocks/:id",
            "params": [
              {
                "name": "username",
                "value": "",
                "type": "path",
                "description": "a valid username string"
              },
              {
                "name": "dashboard_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Replace an existing Block"
        },
        {
          "info": {
            "name": "Update properties of an existing Block",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://io.adafruit.com/api/v2/:username/dashboards/:dashboard_id/blocks/:id",
            "params": [
              {
                "name": "username",
                "value": "",
                "type": "path",
                "description": "a valid username string"
              },
              {
                "name": "dashboard_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update properties of an existing Block"
        },
        {
          "info": {
            "name": "Delete an existing Block",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://io.adafruit.com/api/v2/:username/dashboards/:dashboard_id/blocks/:id",
            "params": [
              {
                "name": "username",
                "value": "",
                "type": "path",
                "description": "a valid username string"
              },
              {
                "name": "dashboard_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Delete an existing Block"
        }
      ]
    }
  ],
  "bundled": true
}