Edit one flood observation
update_observationEdits a flood observation by patching only supplied fields; validation rejects invalid merged data and names bad fields.
Instructions
Edit one flood observation (PATCH; only the fields given change).
The API checks the stored observation merged with changes and refuses
(400, every bad field named) rather than store a half-valid one. Photos are
not fields: attach a link with add_observation_photo_link.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fid | Yes | The observation's fid (from list_observations / add_observations) | |
| changes | Yes | Only the fields to change, in the add_observations write shape (e.g. {"stage_m": 2.5} or a new geometry); validated by the API against the stored observation (a flood_mark or dry_point must keep a date window or a flood_name) | |
| layer_id | Yes | The flood observation layer id | |
| project_id | Yes | The project ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||