> ## Documentation Index
> Fetch the complete documentation index at: https://cobalt-55-abhishek.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Schedule

> Update a scheduled trigger's cron or interval configuration.

Update an existing schedule — change its cron expression, interval dates, date window, timezone, or payload. Returns the updated schedule.

## Authentication

<ParamField header="x-api-key" type="string" required>Your Refold API key.</ParamField>
<ParamField header="linked_account_id" type="string" required>The linked account that owns the schedule.</ParamField>

## Path Parameters

<ParamField path="schedule_id" type="string" required>The schedule ID.</ParamField>

## Body Parameters

<ParamField body="trigger_type" type="string">`cron` or `interval`.</ParamField>
<ParamField body="regex" type="string">Cron expression (cron schedules). Stored as `cron_patten`.</ParamField>
<ParamField body="interval_dates" type="array">Interval date objects (interval schedules).</ParamField>
<ParamField body="startDate" type="string">Earliest run date (`YYYY-MM-DD`).</ParamField>
<ParamField body="endDate" type="string">Latest run date (`YYYY-MM-DD`).</ParamField>
<ParamField body="tz" type="string">Timezone.</ParamField>
<ParamField body="payload" type="object">Event payload passed to the workflow.</ParamField>

## Response

<Tabs>
  <Tab title="200 OK">
    Returns the updated schedule (same shape as [Register Schedule](/v3/api-reference/schedule/register-schedule)).
  </Tab>

  <Tab title="404 Not Found">
    <ResponseField name="status_code" type="integer">HTTP status code.</ResponseField>
    <ResponseField name="http_error_type" type="string">Error category.</ResponseField>
    <ResponseField name="error_code" type="string">Internal error code.</ResponseField>
    <ResponseField name="message" type="string">Human-readable error description.</ResponseField>
  </Tab>
</Tabs>

<ResponseExample>
  ```json 200 theme={null}
  {
    "_id": "6a315b7ad396207fd2547678",
    "event_id": "6a315b7ad396207fd2547676",
    "workflow": "6a17f312aae660322b26883e",
    "config_id": "user_12345",
    "linked_account_id": "user_12345",
    "trigger_type": "cron",
    "cron_patten": "0 10 * * 1",
    "status": "running",
    "inactive": false,
    "registered_by_api": true,
    "options": { "startDate": "2026-07-01", "tz": "UTC", "trigger_type": "cron" }
  }
  ```

  ```json 404 theme={null}
  {
    "status_code": 404,
    "http_error_type": "NOT_FOUND",
    "error_code": "RESOURCE_NOT_FOUND",
    "message": "Scheduled Job Not Found"
  }
  ```
</ResponseExample>

<RequestExample>
  ```bash cURL theme={null}
  curl -X PUT "https://app.refold.ai/api/v1/workflow/public/scheduled/{schedule_id}" \
    -H "x-api-key: YOUR_API_KEY" \
    -H "linked_account_id: YOUR_LINKED_ACCOUNT_ID" \
    -H "Content-Type: application/json" \
    -d '{
      "trigger_type": "cron",
      "regex": "0 10 * * 1",
      "tz": "UTC"
    }'
  ```
</RequestExample>
