Location History
All water_stress processing runs for a specific facility location.
Unlike GET /metrics/facilities/:id/water_stress (which returns the latest per commodity), this endpoint returns every processing run, paginated.
โถRequest
โถMethod & Path
GET /metrics/facilities/: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