Edit an activity
update_activityCorrect an activity by id (from get_activities or log_activity). One logged by hand or by you: any field (type, name, date, start time, distance, duration, heart rate, calories, elevation, notes); pace is recalculated. One that came from the watch or an imported file: only name and notes (e.g. how it felt), its numbers are the device's. Only the fields given change; null clears name, notes, distance, heart rate, calories or elevation. intensity and muscles (main and secondary, for muscle recovery) can be set on any activity. Calories Heza estimated are worked out again when the type, duration, distance or intensity changes; giving calories replaces the estimate.
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": {
"activity_id": "<activity_id>"
},
"name": "update_activity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rpe | No | Alternative to intensity: RPE 1-10 | |
| date | No | Move it to this date (YYYY-MM-DD) | |
| name | No | ||
| notes | No | How it felt, what happened | |
| avg_hr | No | ||
| max_hr | No | ||
| muscles | No | Main muscles worked (Heza names or arms / core / legs / back); null clears | |
| calories | No | ||
| duration | No | Alternative to duration_min: 'mm:ss' or 'h:mm:ss' | |
| intensity | No | easy, moderate or hard | |
| start_time | No | HH:MM local or ISO datetime | |
| activity_id | Yes | Heza activity id (UUID) | |
| distance_km | No | ||
| duration_min | No | ||
| activity_type | No | running, trail_running, treadmill_running, cycling, indoor_cycling, walking, hiking, swimming, rowing, elliptical, other | |
| elevation_gain_m | No | ||
| estimate_calories | No | true: an activity logged by hand without calories gets Heza's estimate now (e.g. sessions logged before estimates existed) | |
| muscles_secondary | No |