---
title: "Create a new schedule"
method: POST
path: "/schedules"
tags: ["Schedules"]
---

# Create a new schedule

`POST /schedules`

## Request body

- object
  - `name` string, required
  - `spider_id` string, required — MongoDB ObjectId represented as a hexadecimal string
  - `cron` string, required
  - `param` object
  - `enabled` boolean

## Response `200`

Schedule created successfully

- Success
  - `code` integer
  - `message` string
  - `data` object

## Changes

- **2025-03-02** `526e5bdf6dee` — 4 breaking, 22 warning, 7 info
  - added the new required request property `cron`
  - added the new required request property `name`
  - added the new required request property `spider_id`
  - request body became required
  - …29 more

[Change history](https://skmtc.dev/crawlab-team/apis/crawlab-api/changes/schedules/post.md)

---

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