Change a training block
update_blockChange a training block: rename it, move or extend its dates ('extend the speed block by two weeks' is weeks, counted from its start), rewrite the goal or notes, switch main on or off, change the colour, link a race. block_id comes from get_blocks or add_block. Only the fields you send change. Sessions in those weeks are never touched. Turning main on, or moving a main block's dates, refuses if another main block covers the same days. All dates are the user's local calendar dates (YYYY-MM-DD) in their own time zone. Requires signing in.
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": {
"block_id": "<block_id>"
},
"name": "update_block"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goal | No | New one-line goal; empty string clears it. | |
| main | No | Make it the day's main block, or set it to run alongside. | |
| name | No | New name. | |
| notes | No | New notes; empty string clears them. | |
| weeks | No | Re-end the block this many weeks after its start date. | |
| colour | No | New tick colour. | |
| race_id | No | Link to a race (race_id from get_calendar); empty string unlinks. | |
| block_id | Yes | ID of the block, from get_blocks or add_block. | |
| end_date | No | New last day, YYYY-MM-DD. | |
| start_date | No | New first day, YYYY-MM-DD. |