> ## Documentation Index
> Fetch the complete documentation index at: https://docs.qoder.com/llms.txt
> Use this file to discover all available pages before exploring further.

# スケジュールを一時停止する

> アクティブな Forward Schedule を一時停止します。

`POST /api/v1/forward/schedules/{schedule_id}/pause`

Schedule を一時停止します。一時停止中のスケジュールはトリガーポリシーに基づいて実行されず、手動実行もできません。

## Headers

| Header            | Required | Description                     |
| ----------------- | -------- | ------------------------------- |
| `Authorization`   | Yes      | `Bearer <PAT>`                  |
| `Content-Type`    | No       | ボディを送信する場合は `application/json`。 |
| `Idempotency-Key` | No       | 安全でないリクエスト向けの任意のべき等キー。          |

## Path parameters

| Parameter     | Type   | Required | Description          |
| ------------- | ------ | -------- | -------------------- |
| `schedule_id` | string | Yes      | Forward Schedule ID。 |

## Example request

```bash theme={null}
curl -s -X POST 'https://api.qoder.com/api/v1/forward/schedules/sched_019f00112233445566778899aabbccdd/pause' \
  -H "Authorization: Bearer $QODER_PAT"
```

## Example response

**HTTP 200 OK**

```json theme={null}
{
  "id": "sched_019f00112233445566778899aabbccdd",
  "identity_id": "idn_019eabc123",
  "template_id": "tmpl_support",
  "name": "Daily tech brief",
  "status": "paused",
  "paused_reason": {
    "type": "manual"
  },
  "archived_at": null,
  "updated_at": "2026-06-22T12:00:00Z"
}
```

## Response fields

`status=paused` が設定された更新後の Schedule オブジェクトを返します。

## Errors

| HTTP | Type                    | Code                      | Trigger              |
| ---- | ----------------------- | ------------------------- | -------------------- |
| 401  | `authentication_error`  | `authentication_required` | PAT が無効または期限切れです。    |
| 404  | `not_found_error`       | `schedule_not_found`      | Schedule が存在しません。    |
| 409  | `invalid_request_error` | `schedule_archived`       | Schedule はアーカイブ済みです。 |

## Notes

* ボディは省略するか、空の JSON オブジェクト `{}` にできます。
* 現在の設計では手動の一時停止理由のみを公開します。

## Related

<CardGroup cols={2}>
  <Card title="スケジュールを再開する" icon="play" href="/cloud-agents/api/forward/schedules/unpause" />

  <Card title="スケジュールを実行する" icon="bolt" href="/cloud-agents/api/forward/schedules/run" />
</CardGroup>
