---
title: "Update schedule"
method: PUT
path: "/workflows/{id}/schedule"
tags: ["Workflows"]
---

# Update schedule

`PUT /workflows/{id}/schedule`

## Request

- Base URL: `https://workflow.loopfour.ai/api/v1`
- URL: `https://workflow.loopfour.ai/api/v1/workflows/{id}/schedule`
- Auth: API key in header `x-api-key`

Sets or updates the cron schedule for a workflow.

## Path parameters

- `id` string, required

## Request body

- object
  - `cron` string: Cron expression.
  - `interval` object: Interval configuration.
    - `value` number, required: Interval value.
    - `unit` 'minutes' | 'hours' | 'days' | 'weeks', required: Interval unit.
  - `timezone` string: IANA timezone.
  - `enabled` boolean: Enable/disable schedule.

## Response `200`

Updated

- object

## Other responses

- `400`: Bad request — invalid parameters or request body.
- `401`: Missing or invalid API key.
- `403`: Forbidden — insufficient permissions for this resource.
- `404`: Resource not found.

---

[API](https://skmtc.dev/loopfour/apis/loopfour-workflows-api.md) - [All operations](https://skmtc.dev/loopfour/apis/loopfour-workflows-api/llms.txt) - [OpenAPI document](https://skmtc.dev/loopfour/apis/loopfour-workflows-api/revisions/872822a3af00?raw)
