# Source: https://upstash.com/docs/qstash/api/schedules/pause.md

# Source: https://upstash.com/docs/qstash/api/queues/pause.md

# Source: https://upstash.com/docs/qstash/api/schedules/pause.md

# Source: https://upstash.com/docs/qstash/api/queues/pause.md

# Source: https://upstash.com/docs/qstash/api/schedules/pause.md

# Source: https://upstash.com/docs/qstash/api/queues/pause.md

# Source: https://upstash.com/docs/qstash/api/schedules/pause.md

# Pause Schedule

> Pause an active schedule

Pausing a schedule will not change the next delivery time, but the delivery will be ignored.
If the schedule is already paused, this action has no effect.

## Request

<ParamField path="scheduleId" type="string" required>
  The id of the schedule to pause.
</ParamField>

## Response

This endpoint simply returns 200 OK if the schedule is paused successfully.

<RequestExample>
  ```sh curl theme={"system"}
  curl -X POST https://qstash.upstash.io/v2/schedules/scd_1234/pause \
    -H "Authorization: Bearer <token>"
  ```

  ```js Node theme={"system"}
  import { Client } from "@upstash/qstash";
  /**
   * Import a fetch polyfill only if you are using node prior to v18.
   * This is not necessary for nextjs, deno or cloudflare workers.
   */
  import "isomorphic-fetch";

  const c = new Client({
    token: "<QSTASH_TOKEN>",
  });

  c.schedules.pause({
    schedule: "<SCHEDULE_ID>"
  });

  ```

  ```python Python  theme={"system"}
  from qstash import QStash

  client = QStash("<QSTASH_TOKEN>")

  client.schedule.pause("<SCHEDULE_ID>")
  ```

  ```go Go theme={"system"}
  package main

  import "github.com/upstash/qstash-go"

  func main() {

  	client := qstash.NewClient("<QSTASH_TOKEN>")

  	// error checking is omitted for brevity
  	err := client.Schedules().Pause("<SCHEDULE_ID>")
  }
  ```
</RequestExample>