---
title: "Update Schedule"
method: PATCH
path: "/api/v1/reports/schedules/{schedule_id}"
tags: ["reports"]
---

# Update Schedule

`PATCH /api/v1/reports/schedules/{schedule_id}`

## Path parameters

- `schedule_id` integer, required

## Headers

- `authorization` string, nullable
- `X-API-Key` string, nullable

## Request body

- ScheduleUpdate
  - `cron` string, nullable
  - `timezone` string, nullable
  - `format` string, nullable
  - `recipient_user_ids` integer[], nullable
  - `is_active` boolean, nullable

## Response `200`

Successful Response

- ScheduleOut
  - `id` integer, required
  - `report_id` integer, required
  - `schedule_cron` string, required
  - `timezone` string, required
  - `format` string, required
  - `recipient_user_ids` integer[], required
  - `is_active` boolean, required
  - `next_run_at` string, date-time, nullable
  - `last_run_at` string, date-time, nullable
  - `created_by` integer, required
  - `created_at` string, date-time, nullable
  - `updated_at` string, date-time, nullable
  - `last_run` ScheduleRunStatus — A schedule's most recent run, shown inline on the schedule itself.
    - `execution_id` integer, required
    - `status` string, required
    - `started_at` string, date-time, required
    - `completed_at` string, date-time, nullable
    - `row_count` integer, nullable
    - `error_message` string, nullable
    - `delivered_count` integer
    - `attempted_count` integer

## Other responses

- `422` — Validation Error

## Changes

- **2026-08-27** `db5ab8f1fcef` — 1 info
  - added the optional property `last_run` to the response with the `200` status

[Change history](https://skmtc.dev/ninjavan/apis/salesforce-sales-cloud-replacement/changes/api/v1/reports/schedules/:schedule_id/patch.md)

---

[API](https://skmtc.dev/ninjavan/apis/salesforce-sales-cloud-replacement.md) · [All operations](https://skmtc.dev/ninjavan/apis/salesforce-sales-cloud-replacement/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ninjavan/salesforce-sales-cloud-replacement/revisions/ce7abafbb050/schema)
