Single Location
Fetch one location by its id. Use these when you already have a location id (e.g. from a browse listing or a metric response) and want that single record's geometry and attributes.
| Endpoint | Returns |
|---|---|
GET /locations/:id | A single location of any type, looked up by id. |
GET /locations/facilities/:id | A single facility. |
GET /locations/plots/:id | A single plot. |
GET /locations/sheds/:id | A single supply shed. |
Each endpoint honours the Accept header, so a location can be returned in the standard JSON envelope or as a single GeoJSON Feature. A lookup that matches no location (or one your organisation cannot access) returns 404 NOT_FOUND. See Response Formats and Error Codes.
Required scope:
locations:read