---
title: "Create a Scheduled Job"
method: POST
path: "/scheduled-jobs"
tags: ["Scheduled Jobs"]
---

# Create a Scheduled Job

`POST /scheduled-jobs`

Create a Scheduled Job

## Request body

- 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

## Response `201`

Return the created ScheduledJob

- 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 request body content
- `401` — Invalid credentials
- `403` — You do not have permission to create a Scheduled Job under the specified Project
- `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)
