---
title: "Create Schedule"
method: POST
path: "/v2/agents/{agent_id}/schedules"
tags: ["Schedules"]
---

# Create Schedule

`POST /v2/agents/{agent_id}/schedules`

Create a schedule for an agent. The schedule fires against the agent's live build. The authenticated user owns the schedule.

## Path parameters

- `agent_id` string, uuid, required

## Request body

- object
  - `enabled` boolean, required
  - `frequency` 'every_5_minutes' | 'every_15_minutes' | 'hourly' | 'daily' | 'workday' | 'weekly' | 'monthly' | 'custom', required
  - `time` string, nullable
  - `timezone` string, required
  - `day` 'monday' | 'tuesday' | 'wednesday' | 'thursday' | 'friday' | 'saturday' | 'sunday', nullable
  - `day_of_month` integer, nullable
  - `cron` string, nullable
  - `recurring` boolean, nullable

## Response `200`

Default Response

- object
  - `id` string, required
  - `build_id` string, required
  - `agent_id` string, required
  - `user_id` string, required
  - `enabled` boolean, required
  - `frequency` 'every_5_minutes' | 'every_15_minutes' | 'hourly' | 'daily' | 'workday' | 'weekly' | 'monthly' | 'custom', required
  - `time` string, nullable, required
  - `timezone` string, required
  - `day` string, nullable, required
  - `day_of_month` number, nullable, required
  - `cron` string, nullable, required
  - `source` string, nullable, required
  - `task` string, nullable, required
  - `recurring` boolean, nullable, required
  - `auto_disabled_at` string, nullable, required
  - `auto_disabled_reason` string, nullable, required
  - `consecutive_missing_connection_failures` integer, required
  - `first_missing_connection_failure_at` string, nullable, required
  - `last_missing_connection_failure_at` string, nullable, required
  - `created_at` string, required
  - `updated_at` string, required
  - `user_name` string, nullable
  - `user_email` string, nullable

## Other responses

- `400` — Default Response
- `401` — Default Response
- `403` — Default Response
- `404` — Default Response
- `500` — Default Response

---

[API](https://skmtc.net/duvo/apis/duvo-public-api.md) · [All operations](https://skmtc.net/duvo/apis/duvo-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/duvo/duvo-public-api/revisions/dafcf3d868a9/schema)
