---
title: "Create Schedule"
method: POST
path: "/workspaces/{workspace_id}/schedules"
tags: ["schedules"]
---

# Create Schedule

`POST /workspaces/{workspace_id}/schedules`

## Request

- Base URL: `https://platform.tracecat.com/api`
- URL: `https://platform.tracecat.com/api/workspaces/{workspace_id}/schedules`
- Auth: one of:
  - API key in cookie `fastapiusersauth`
  - HTTP bearer

Create a schedule for a workflow.

## Path parameters

- `workspace_id` string, uuid, required

## Request body

- ScheduleCreate
  - `workflow_id` union, required
    - string
    - string
  - `inputs` object, nullable
  - `cron` string, nullable
  - `every` string, duration, nullable: ISO 8601 duration string
  - `offset` string, duration, nullable: ISO 8601 duration string
  - `start_at` string, date-time, nullable: ISO 8601 datetime string
  - `end_at` string, date-time, nullable: ISO 8601 datetime string
  - `status` 'online' | 'offline'
  - `timeout` number: The maximum number of seconds to wait for the workflow to complete

## Response `200`

Successful Response

- ScheduleRead
  - `id` string, required
  - `workspace_id` string, uuid, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `workflow_id` string, required
  - `inputs` object, nullable
  - `cron` string, nullable
  - `every` string, duration, nullable
  - `offset` string, duration, nullable
  - `start_at` string, date-time, nullable
  - `end_at` string, date-time, nullable
  - `timeout` number, nullable
  - `status` 'online' | 'offline', required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/tracecat/apis/tracecat-api.md) - [All operations](https://skmtc.dev/tracecat/apis/tracecat-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tracecat/apis/tracecat-api/revisions/2efdda25045f?raw)
