Location History

All water_stress processing runs for a specific shed location.

Unlike GET /metrics/sheds/:id/water_stress (which returns the latest per commodity), this endpoint returns every processing run, paginated.

Request

Method & Path

GET /metrics/sheds/:id/water_stress/history

Path parameters

  • id (uuid, required) โ€” The location ID.

Query parameters

  • page โ€” Page number (default: 1).
  • page_size โ€” Results per page (default: 20, max: 1000).

Response

  • 200 โ€” Paginated list of all water_stress metrics for this location.
  • 404 โ€” Location not found or not accessible.

Geometry

Geometry is opt-in โ€” pass ?include_geometries=true to include the geo attribute (the location's geometry) on JSON / NDJSON responses (GeoJSON formats always include it). See Query Parameters โ†’ Geometry.

Required scope: metrics:read