{
  "opencollection": "1.0.0",
  "info": {
    "name": "Materials Zone files measurements API",
    "version": "2.0.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "Authorization",
      "value": "{{Authorization}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "measurements",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Create a measurement",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.materials.zone/v2beta1/items/:itemId/measurements",
            "params": [
              {
                "name": "itemId",
                "value": "eb1aa7b4-0e21-46de-b448-0c4eabdd32b7",
                "type": "path",
                "description": "The id of the item to create the measurement for."
              }
            ],
            "body": {
              "type": "multipart-form",
              "data": [
                {
                  "name": "title",
                  "type": "text",
                  "value": ""
                },
                {
                  "name": "description",
                  "type": "text",
                  "value": ""
                },
                {
                  "name": "rawFile",
                  "type": "text",
                  "value": ""
                },
                {
                  "name": "parserCode",
                  "type": "text",
                  "value": ""
                }
              ]
            }
          },
          "docs": "This operation creates a measurement. See [Python examples - multipart post request](#overview--python-examples---multipart-post-request)."
        },
        {
          "info": {
            "name": "Update existing measurement",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.materials.zone/v2beta1/items/:itemId/measurements/:measurementId",
            "params": [
              {
                "name": "itemId",
                "value": "eb1aa7b4-0e21-46de-b448-0c4eabdd32b7",
                "type": "path",
                "description": "The id of the item to create the measurement for."
              },
              {
                "name": "measurementId",
                "value": "eb1aa7b4-0e21-46de-b448-0c4eabdd32b7",
                "type": "path",
                "description": "The id of the measurement to update."
              }
            ],
            "body": {
              "type": "multipart-form",
              "data": [
                {
                  "name": "title",
                  "type": "text",
                  "value": ""
                },
                {
                  "name": "description",
                  "type": "text",
                  "value": ""
                },
                {
                  "name": "parserCode",
                  "type": "text",
                  "value": ""
                }
              ]
            }
          },
          "docs": "This operation updates an existing measurement."
        },
        {
          "info": {
            "name": "Delete a single measurement",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.materials.zone/v2beta1/items/:itemId/measurements/:measurementId",
            "params": [
              {
                "name": "itemId",
                "value": "eb1aa7b4-0e21-46de-b448-0c4eabdd32b7",
                "type": "path",
                "description": "The id of the item to create the measurement for."
              },
              {
                "name": "measurementId",
                "value": "eb1aa7b4-0e21-46de-b448-0c4eabdd32b7",
                "type": "path",
                "description": "The id of the measurement to update."
              }
            ]
          },
          "docs": "This operation can be used to delete a single measurement."
        }
      ]
    }
  ],
  "bundled": true
}