Correct a time series
update_time_seriesCorrect a time series you created (PATCH; only the fields you pass change).
Instructions
Correct a time series you created (PATCH; only the fields you pass change).
Use it to fix a series instead of leaving a wrong one behind. The same
rules as create_time_series apply to new rows (units match the type, a
hydrograph or hyetograph ends at 0 unless hold_last_value, at least 2
rows, no negative rain or flow, not all zero) and Hydrata refuses with the
reason in plain words. A series already used by a built scenario changes the
scenario: it needs a rebuild and the user reviews it again. Returns a compact
record, not the rows.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_id": "<project_id>",
"series_id": "<series_id>"
},
"name": "update_time_series"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Replacement rows: {"rowData": [{"timestamp": "<ISO 8601>", "value": <number>}, ...]}. Validated here before anything is sent; Hydrata refuses fewer than 2 rows, negative rain or flow values and an all-zero rain or flow series. Time zones: a stamp with no offset is a wall clock in the series timezone; a stamp with Z or +hh:mm is that instant, stored in UTC and shown in the series timezone; one series never mixes the two (Hydrata refuses it with MIXED_TIMESTAMP_FORMS). How the simulation reads the rows: for rainfall and flow, each value holds from its timestamp until the next row's (a step: no straight line between rows), so send ONE row per interval, at its START (e.g. every 5 minutes), and end with a 0 row at the end of the last interval; never add a row just before the next one, it changes nothing. Rainfall values are rates (mm/hr): the depth of an interval is rate x its length. Use whole-second timestamps. A stage series is the exception: the level goes in a straight line between rows. | |
| name | No | New name (a rainfall polygon binds to its gauge by this exact name) | |
| units | No | New units (must match the series_type, as in create_time_series) | |
| method | No | One short phrase saying how you got the new numbers. Replaces the earlier account. | |
| sources | No | The documents this came from, so the engineer can click through to them: a list of {title, url, locator}, e.g. [{title: 'GHD 2015 Sullivans Creek Flood Study', url: 'https://...', locator: 'Table 5-2'}]. Limits: title (1-200 characters) and url (http or https, at most 2000 characters) are required; locator (a page or table, e.g. 'p. 42' or 'Table 5-2') is optional, at most 100 characters. At most 20 entries. Pass it beside the method whenever you cite a document. Replaces the earlier list. | |
| series_id | Yes | The time series id (from list_time_series or create_time_series) | |
| project_id | Yes | The project ID | |
| description | No | New description | |
| series_type | No | New series_type: hyetograph, hydrograph, stage or generic | |
| rainfall_basis | No | State what a rainfall series' numbers are: `excess` (rain after losses) or `gross` (before losses). Use it to correct a series that was saved without a basis. | |
| hold_last_value | No | Set true only when you mean the last value not to be 0. How the simulation reads the last row: a rainfall's last row rains for one more interval (as long as the step before it) and then stops at 0; an inflow's last value is held to the end of the run. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||