Docs

MCP tool · Schedules

Change one night of the schedule

Changes ONE night (tonight by default, or a later sleep_day) without changing the weekly schedule; that night keeps these values, the others follow the week.

override_sleep_schedule_tonight

"Skip tonight" = enabled: false. A night has four phases, in time order and named as the Orion app shows them: bedtime, night, dawn and alarm. Each phase is { phase: "bedtime" | "night" | "dawn" | "alarm", time?: "HH:MM", temp_c?: number, remove?: true (night / dawn only), shape?: [...] (night / dawn only) }. alarm_enabled turns the alarm phase on (wakes you at the alarm time and turns the bed off after it) or off. Send only what changes. night and dawn keep their distance from bedtime or the alarm (usually night from bedtime, dawn from the alarm), so moving bedtime or the alarm moves them too unless you also send their time. Undo with revert_sleep_schedule_override. Returns the user's schedule after the change.

Input

One arguments object with these fields.

Arguments object
  • sleep_day string pattern ^\d{4}-\d{2}-\d{2}$

    The sleep day (YYYY-MM-DD, the date the night starts in the bed's timezone): today or later. Defaults to tonight (the today of get_sleep_schedules).

  • enabled boolean

    false skips the night; true runs it.

  • alarm_enabled boolean

    The alarm phase on or off: on wakes you at the alarm time and turns the bed off after it; off lets the bed keep running past the alarm time.

  • phases object[]

    The night’s phase values to change.

  • user_id string (uuid)

    Whose schedule (from list_devices shared_with). Defaults to you. Editing another user needs the owner or admin role on a shared bed.

Output

Result JSON
  • schedules record<string, object> required

    Keyed by user id

Example arguments

{
  "sleep_day": "<string>",
  "enabled": true,
  "alarm_enabled": true,
  "phases": [
    {
      "time": "<string>",
      "temp_c": 123,
      "phase": "bedtime",
      "remove": true,
      "shape": [
        {
          "from": "start",
          "minutes": 123,
          "delta_c": 123
        }
      ]
    }
  ],
  "user_id": "<uuid>"
}
JSON
Over HTTP: PUT /v1/schedules/nights