{
  "success": {
    "v": 2,
    "license": "CC-BY 4.0",
    "description": "measurements",
    "options": {
      "parameters": {
        "measurement": "string, measurement definition name",
        "measurement_type": "string, measurement definition type",
        "measurement_class": "string, measurement definition class",
        "measurement_id": "integer, measurement definition unique identifier",
        "measure_id": "integer, specific measurement id",
        "measuremeta_id": "integer, specific id for measurment metadata (generally a sample)",
        "unit_id": "integer, one or more ids for unit containing measurements",
        "interval_name": "string, an interval name to restrict measurements matched to units touching given age",
        "lith_id": "integer, one or more ids for lith (see /defs/lithologies)",
        "lith_type": "string, one or more lithology types",
        "lith_class": "string, one or more lithology classes",
        "section_id": "integer, id for section containing measurements",
        "col_id": "integer, id for column containing measurements",
        "project_id": "integer, id for project",
        "measure_phase": "string, phase from which measurement was taken (e.g., 'zircon')",
        "response": "Any available response_type. Default is short. Use 'light' for effecient return of measurements with little metadata",
        "format": "Desired output format",
        "sample": "if present, show a subset of the data",
        "show_values": "if present, show measurements as arrays, grouped by measuremeta_id and measurement_id"
      },
      "output_formats": [
        "json",
        "csv",
        "geojson",
        "topojson",
        "geojson_bare",
        "topojson_bare"
      ],
      "examples": [
        "api/measurements?col_id=11&show_values",
        "api/measurements?measure_id=353&response=long"
      ],
      "response_types": [
        "light",
        "short",
        "long"
      ],
      "fields": {
        "measurement_id": "integer, unique identifier for measurement",
        "measuremeta_id": "integer, unique identifier for measuremeta (sample metadata)",
        "measurement": "text, specific measurement",
        "measure_units": "text, units used in generating the measurement",
        "measure_phase": "text, material analyzed for measure_value (e.g., 'zircon' or 'whole rock')",
        "method": "text, method used to generate result",
        "n": "integer, number of observations/measurements",
        "measure_value": "number, reported value for measurement",
        "measure_error": "number, reported error associated with measure_value",
        "measure_position": "number, position of measurement in column, optionally section or unit; requires context of latter",
        "measure_n": "number, measurements used to compute measure_value, if greater than 1, typically also used in measure_error",
        "error_units": "text, units used in reported measure_error",
        "lat": "decimal, latitude in WGS84",
        "lng": "decimal, longigtude in WGS84",
        "samp_geo_unit": "text, geological unit yielding sample_measurement",
        "samp_lith": "text, lithological description of sample that produced measure_value",
        "samp_desc": "text, verbal description of sample used to generate",
        "samp_age": "text, geological time interval assigned to measurement",
        "ref_id": "integer, unique reference identifer",
        "unit_id": "integer, unique identifier for unit",
        "col_id": "integer, unique identifier for column",
        "strat_name_id": "integer, unique identifier for known stratigraphic name(s) (see /defs/strat_names)",
        "match_basis": "text, terse descriptor of what served to match measuremeta record to given macrostrat unit, if any",
        "ref": "text, name of reference"
      }
    }
  }
}