POST /v1/deployments/{id}/run
Deployment Run を手動でトリガーします。Deployment は active ステータス(一時停止やアーカイブ済みではない) である必要があります。最大同時実行数の上限に達している場合、Run は skipped ステータスで記録されます。
パスパラメータ
| パラメータ | 型 | 説明 |
|---|---|---|
id | string | Deployment ID(dep_ プレフィックス) |
ヘッダー
| 名称 | 必須 | 値 |
|---|---|---|
Authorization | はい | Bearer $QODER_PAT |
Content-Type | はい | application/json |
リクエストボディ
リクエストボディは不要です。空の JSON オブジェクト{} を送るか、ボディを省略してください。
リクエスト例
レスポンス例
HTTP 200 OK Deployment Run オブジェクトを返します。レスポンスフィールド (Deployment Run)
| フィールド | 型 | 説明 |
|---|---|---|
id | string | Run の一意識別子(drun_ プレフィックス) |
type | string | 固定値 "deployment_run" |
deployment_id | string | 親 Deployment ID |
agent | object | Agent 参照: {id, type, version} |
status | string | Run ステータス: pending、running、completed、failed、skipped |
error | object or null | 失敗時のエラー詳細({message, type})、それ以外は null |
trigger_context | object | トリガーソース: {"type": "manual"}、{"type": "schedule"}、または {"type": "retry"} |
session_id | string | 関連付けられた Session ID(Session 作成後に出現) |
completed_at | string | 完了タイムスタンプ(ISO 8601、終了状態で出現) |
duration_ms | integer | Run の実行時間(ミリ秒、完了時に出現) |
cas_run_extras | object | CAS 固有メタデータ: attempt、turn_id、started_at |
triggered_at | string | トリガータイムスタンプ(ISO 8601) |
created_at | string | レコード作成時刻(ISO 8601) |
エラー
| HTTP | type | 説明 |
|---|---|---|
| 401 | authentication_error | PAT が無効または期限切れ |
| 404 | not_found_error | Deployment が存在しない |
| 409 | conflict_error | Deployment がアーカイブ済みまたは active ステータスでない |
関連項目
Deployment Run 一覧
この Deployment の実行履歴を一覧で取得します。
Deployment Run の取得
特定の Run の詳細とステータスを取得します。
全 Deployment Run 一覧
すべての Deployment にまたがる Run を確認します。
Deployment の取得
Deployment 設定と次回のスケジュール時刻を確認します。