---
title: "Update a wake schedule"
method: PATCH
path: "/wake/schedules/{id}"
tags: ["Wake"]
---

# Update a wake schedule

`PATCH /wake/schedules/{id}`

Update a schedule's command, args, cadence, addresses, note, or enabled
state. Changing the cadence (or re-enabling) recomputes the next fire time.

## Request body

- object
  - `enabled` boolean
  - `command` string
  - `args` object
  - `cron_expr` string
  - `timezone` string
  - `from_address` string
  - `target_address` string
  - `note` string, nullable

## Response `200`

Updated wake schedule

- object
  - `success` true, required
  - `data` object, required — A cron schedule that sends a wake.dispatch command to a function.
    - `id` string, uuid, required
    - `from_address` string, nullable — The sending identity the wake is signed as.
    - `target_address` string, required — The function address the wake is delivered to.
    - `command` string, required
    - `args` object
    - `cron_expr` string, required — 5-field cron expression.
    - `timezone` string, required — IANA timezone the cron is evaluated in.
    - `next_run_at` string, date-time, required
    - `last_run_at` string, date-time, nullable
    - `enabled` boolean, required
    - `note` string, nullable
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required

## Other responses

- `400` — Invalid request parameters
- `401` — Invalid or missing API key
- `404` — Resource not found

---

[API](https://skmtc.dev/primitive/apis/primitive-api.md) · [All operations](https://skmtc.dev/primitive/apis/primitive-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/primitive/primitive-api/revisions/c2299d28022c/schema)
