reachthingsDocs
EN
Dashboard
Schedule toolsupdate_schedule
On this page
TOOLscope: devices:control · idempotentHint

update_schedule

Changes the time, recurrence, timezone, end date, parameters, label, or grace period. If the target, command, time, or recurrence changes, the version increases and a schedule that needs approval must be approved by the owner again.

Arguments

schedule_idstringrequired

From create_schedule or list_schedules. Schedules are visible only to the agent that created them.

parameters · timezone · recurrence · ends_on · grace_minutes · label

Any subset. ends_on and label accept null to clear.

Returns: Schedule

statusenum

pending_approval active paused blocked cancelled completed, with status_reason.

recurrenceobject

{kind:"once", at}, {kind:"daily", time} or {kind:"weekly", time, weekdays}; recurrence_text is a human sentence.

next_run_at · next_run_localstring | null

Next run in UTC and in the schedule's timezone. null when nothing is left to run.

versioninteger

Increases when the target, command, time or recurrence changes. A schedule that needs approval must be approved again for the new version.

approvalobject

required, state (not_required pending approved expired), approved_version, expires_at and, when required, the console url.

grace_minutes · dst_policy · notes

Late runs beyond the grace period are skipped, never replayed. DST: a local time that does not exist moves forward; one that occurs twice runs the first time.

Request

REQUESTTypeScript ▾
await client.callTool({
  name: "update_schedule",
  arguments: { schedule_id: "sch_7Qp2", recurrence: { kind: "weekly", time: "07:30", weekdays: [1, 2, 3, 4, 5] } }
});
RESPONSE · structuredContent
{
  "schedule_id": "sch_7Qp2",
  "status": "active",
  "status_reason": null,
  "label": "Weekday morning AC",
  "device_id": "dev_8kq2",
  "action": "climate.set_temperature",
  "parameters": {
    "temperature": 24,
    "unit": "C"
  },
  "timezone": "Asia/Seoul",
  "recurrence": {
    "kind": "weekly",
    "time": "07:30",
    "weekdays": [
      1,
      2,
      3,
      4,
      5
    ]
  },
  "recurrence_text": "Weekly Mon·Tue·Wed·Thu·Fri 07:30",
  "ends_on": "2026-12-31",
  "next_run_at": "2026-11-02T22:30:00.000Z",
  "next_run_local": "2026-11-03 07:30 (Tue)",
  "last_run_at": null,
  "version": 2,
  "grace_minutes": 15,
  "approval": {
    "required": false,
    "state": "not_required",
    "approved_version": null,
    "expires_at": null
  },
  "dst_policy": "DST handling: a local time that does not exist (spring-forward gap) runs at the real time shifted forward by the gap; a local time that occurs twice (fall-back overlap) runs at the first occurrence.",
  "notes": []
}