scheduled prompts: refresh patch_schedule doc for target edits (#478)

This commit is contained in:
damocles 2026-05-26 16:23:59 +02:00 committed by Mara
commit a9af7adf5c

View file

@ -1536,14 +1536,16 @@ where
/// `PATCH /api/schedules/{id}` — partial update of an existing /// `PATCH /api/schedules/{id}` — partial update of an existing
/// schedule (#474). Mutable fields: `body`, `description`, /// schedule (#474). Mutable fields: `body`, `description`,
/// `interval_seconds`, `next_fire_at_unix`. Targets stay /// `interval_seconds`, `next_fire_at_unix`, plus the target set
/// immutable (per-target last-result history is keyed on them; /// via `targets_add` / `targets_remove` (#478). Both target lists
/// the "I want different targets" workaround is cancel + submit /// are applied in the same transaction as the scalar fields with
/// a new schedule). JSON body uses missing-key = "leave alone", /// removes-before-adds; re-adding a previously-removed target
/// explicit null = "clear" for `description` + `interval_seconds`. /// resets per-target history (fresh start); draining all targets
/// Cancelled schedules are refused — submit a new one instead. /// auto-cancels the parent schedule. JSON body uses missing-key
/// Returns the updated `WireSchedule` so the caller's post-edit /// = "leave alone", explicit null = "clear" for `description` +
/// refresh has the new state inline. /// `interval_seconds`. Cancelled schedules are refused — submit
/// a new one instead. Returns the updated `WireSchedule` so the
/// caller's post-edit refresh has the new state inline.
async fn patch_schedule( async fn patch_schedule(
State(state): State<AppState>, State(state): State<AppState>,
AxumPath(id): AxumPath<i64>, AxumPath(id): AxumPath<i64>,