---
title: "PUT /v2/scheduler/{agent_id}"
method: PUT
path: "/v2/scheduler/{agent_id}"
tags: ["Scheduler"]
---

# PUT /v2/scheduler/{agent_id}

`PUT /v2/scheduler/{agent_id}`

## Request

- Base URL: `https://api.agenty.com`
- URL: `https://api.agenty.com/v2/scheduler/{agent_id}`
- Auth: HTTP bearer

Schedule an agent to run automatically with a cron expression.

## Path parameters

- `agent_id` string, required

## Request body

- unknown

## Response `200`

- SchedulerDtoOutput
  - `scheduler` object, required
    - `type` 'cron' | 'interval', required
    - `expression` string, required
    - `frequency` number, nullable
    - `description` string, nullable
    - `is_enabled` boolean, required
  - `next_scheduled_run_at` string, nullable
  - `last_scheduled_run_at` string, nullable

---

[API](https://skmtc.dev/agenty/apis/web-scraping-api-agenty.md) - [All operations](https://skmtc.dev/agenty/apis/web-scraping-api-agenty/llms.txt) - [OpenAPI document](https://skmtc.dev/agenty/apis/web-scraping-api-agenty/revisions/5392481adaca?raw)
