> ## 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.

# Pause Schedule

> Pause a scheduled trigger.

Pause a schedule so it stops firing. The schedule is retained and can be resumed later. After pausing, `status` is `paused` and `inactive` is `true`.

## 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 to pause.</ParamField>

## Response

<Tabs>
  <Tab title="200 OK">
    Returns the schedule with `status: "paused"` and `inactive: true`.
  </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",
    "workflow": "6a17f312aae660322b26883e",
    "config_id": "user_12345",
    "linked_account_id": "user_12345",
    "trigger_type": "cron",
    "cron_patten": "0 9 * * 1",
    "status": "paused",
    "inactive": true
  }
  ```

  ```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}/pause" \
    -H "x-api-key: YOUR_API_KEY" \
    -H "linked_account_id: YOUR_LINKED_ACCOUNT_ID"
  ```
</RequestExample>
