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

# Deployment の一時停止解除

> 一時停止された Deployment を再開します。

`POST /api/v1/cloud/deployments/{id}/unpause`

一時停止された Deployment を再開します。Deployment は `active` ステータスに戻り、`paused_reason` は `null` にクリアされ、次回のトリガー時刻が現在時刻から再計算されます。手動実行のみの Deployment は `schedule: null` で復元されます。

## パスパラメータ

| パラメータ | 型      | 説明                            |
| ----- | ------ | ----------------------------- |
| `id`  | string | Deployment ID(`dep_` プレフィックス) |

## ヘッダー

| 名称              | 必須 | 値                   |
| --------------- | -- | ------------------- |
| `Authorization` | はい | `Bearer $QODER_PAT` |
| `Content-Type`  | はい | `application/json`  |

## リクエストボディ

リクエストボディは不要です。

## リクエスト例

```bash theme={null}
curl -X POST "https://api.qoder.com/api/v1/cloud/deployments/dep_019ec55a2b687b3f94eee77dd77e4b2a/unpause" \
  -H "Authorization: Bearer $QODER_PAT" \
  -H "Content-Type: application/json"
```

## レスポンス例

**HTTP 200 OK**

`active` ステータスに復元された完全な Deployment オブジェクトを返します。

```json theme={null}
{
  "agent": {
    "id": "agent_019ebb21ef8e7df6a559052c94875160",
    "type": "agent",
    "version": 1
  },
  "archived_at": null,
  "created_at": "2026-06-14T08:58:01Z",
  "description": "Deployment created for API documentation verification",
  "environment_id": "env_019e49a1780171daac1e6b01f290ac2b",
  "environment_variables": "",
  "id": "dep_019ec55a2b687b3f94eee77dd77e4b2a",
  "initial_events": [
    {
      "content": [
        {
          "type": "text",
          "text": "Generate today's status report"
        }
      ],
      "type": "user.message"
    }
  ],
  "metadata": {},
  "name": "api-doc-verification-deployment-v2",
  "paused_reason": null,
  "resources": [],
  "schedule": {
    "expression": "30 9 * * 1-5",
    "last_run_at": "2026-06-14T08:58:17Z",
    "timezone": "Asia/Shanghai",
    "type": "cron",
    "upcoming_runs_at": [
      "2026-06-15T01:30:00Z",
      "2026-06-16T01:30:00Z",
      "2026-06-17T01:30:00Z",
      "2026-06-18T01:30:00Z",
      "2026-06-19T01:30:00Z"
    ]
  },
  "status": "active",
  "type": "deployment",
  "updated_at": "2026-06-14T08:58:27Z",
  "vault_ids": []
}
```

## エラー

| HTTP | type                   | 説明                    |
| ---- | ---------------------- | --------------------- |
| 401  | `authentication_error` | PAT が無効または期限切れ        |
| 404  | `not_found_error`      | Deployment が存在しない     |
| 409  | `conflict_error`       | Deployment が一時停止状態でない |

完全なエラーエンベロープについては [エラー](/ja/cloud-agents/api/conventions/errors) を参照してください。

## 関連項目

<CardGroup cols={2}>
  <Card title="Deployment の一時停止" icon="pause" href="/ja/cloud-agents/api/deployments/pause">
    Deployment を一時停止してスケジュールされた実行を止めます。
  </Card>

  <Card title="Deployment の実行" icon="play" href="/ja/cloud-agents/api/deployments/run">
    再開後の Deployment を手動でトリガーします。
  </Card>

  <Card title="Deployment の取得" icon="layer-group" href="/ja/cloud-agents/api/deployments/get">
    `status` フィールドで `active` に戻ったことを確認します。
  </Card>

  <Card title="エラー" icon="circle-exclamation" href="/ja/cloud-agents/api/conventions/errors">
    共通のエラーエンベロープ仕様を参照します。
  </Card>
</CardGroup>
