---
title: "Update a Scheduled Job"
method: PATCH
path: "/scheduled-jobs/{job_id}"
tags: ["Scheduled Jobs"]
---

# Update a Scheduled Job

`PATCH /scheduled-jobs/{job_id}`

Update a Scheduled Job by ID

## Path parameters

- `job_id` integer, required

## Request body

- ScheduledJobUpdate
  - `archived` boolean — Whether the Scheduled Job is archived
  - `campaign_ids` integer[] — A list of campaign_ids that should be considered during the job
  - `experiment_ids` integer[] — A list of experiment_ids that should be considered during the job
  - `frequency` 'daily' | 'weekly'
  - `job_type` 'project_results' — The type of job to be performed
  - `output_channels` object — An object describing how the output of the job should be communicated
  - `project_id` integer — The project that the job is associated with

## Response `200`

Return the updated Scheduled Job

- ScheduledJob
  - `account_id` integer — The account that the job is associated with
  - `archived` boolean — Whether the Scheduled Job is archived
  - `campaign_ids` integer[] — A list of campaign_ids that should be considered during the job
  - `experiment_ids` integer[] — A list of experiment_ids that should be considered during the job
  - `frequency` 'daily' | 'weekly', required — How often the job should be performed
  - `id` integer — The unique identifier of the Scheduled Job
  - `job_type` 'project_results', required — The type of job to be performed
  - `output_channels` object — An object describing how the output of the job should be communicated
  - `project_id` integer, required — The project that the job is associated with

## Other responses

- `400` — Invalid ID or request body supplied
- `401` — Invalid credentials
- `403` — You do not have permission to edit the specified Scheduled Job
- `404` — Scheduled Job not found
- `default` — Unexpected error

---

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