POST/api/orgs/{org_id}/datasets/{dataset_id}/runs/{run_id}/cancel

データセットの実行をキャンセルする

現在のバッチの後で実行を停止するよう依頼します。

認証: AuthorizationヘッダーにBearer形式のAPIキー

パスパラメーター

  • org_idstring必須

    お客様の組織ID(uuid)。GET /api/whoamiで取得できます。

  • dataset_idstring必須

    データセットのID。

  • run_idstring必須

    実行のID。

レスポンス

  • 200

    実行。

    レスポンス
    • idstring
    • dataset_idstring
    • modelstring
    • tag_idsarray<string>
    • statusenum
      "queued""running""completed""failed""cancelled"
    • items_totalinteger
    • items_doneinteger
    • items_failedinteger
    • cost_nano_usdinteger
    • tag_ratesobject

      タグIDごとの発火率。

    • created_atstring
    • finished_atstring | null
  • 401

    APIキーがない、不明、または失効しています。

    レスポンス
    • errorstring必須

      人が読めるメッセージ。

    • codestring

      エンドポイントが定義している場合の、安定した機械可読の理由(例:pro_required)。

    • actionstring

      エンドポイントが定義している場合の、安定した対処アクション。

    • detailsobject

      呼び出し元が対処するために必要な、顧客に提示して安全な文字列情報(推奨される識別子など)。

  • 403

    キーは有効ですが、この操作は許可されていません(例:プロビジョニングキー用エンドポイントでの推論キー、プラン対象外の機能)。

    レスポンス
    • errorstring必須

      人が読めるメッセージ。

    • codestring

      エンドポイントが定義している場合の、安定した機械可読の理由(例:pro_required)。

    • actionstring

      エンドポイントが定義している場合の、安定した対処アクション。

    • detailsobject

      呼び出し元が対処するために必要な、顧客に提示して安全な文字列情報(推奨される識別子など)。

  • 404

    リソースが存在しないか、他の組織に属しています。

    レスポンス
    • errorstring必須

      人が読めるメッセージ。

    • codestring

      エンドポイントが定義している場合の、安定した機械可読の理由(例:pro_required)。

    • actionstring

      エンドポイントが定義している場合の、安定した対処アクション。

    • detailsobject

      呼び出し元が対処するために必要な、顧客に提示して安全な文字列情報(推奨される識別子など)。

リクエスト

curl -X POST 'https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/datasets/1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e/runs/4d3c2b1a-0f9e-4d8c-7b6a-5f4e3d2c1b0a/cancel' \
  -H "Authorization: Bearer <YOUR_API_KEY>"

レスポンス

{
  "id": "4d3c2b1a-0f9e-4d8c-7b6a-5f4e3d2c1b0a",
  "dataset_id": "1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e",
  "model": "gpt-6-luna",
  "tag_ids": [
    "0c6f2e4a-7b1d-4f3e-9a2c-5d8e1b7f3a90"
  ],
  "status": "running",
  "items_total": 120,
  "items_done": 40,
  "items_failed": 0,
  "cost_nano_usd": 210000000,
  "tag_rates": {
    "0c6f2e4a-7b1d-4f3e-9a2c-5d8e1b7f3a90": 0.05
  },
  "created_at": "2026-11-18T14:32:07Z",
  "finished_at": null
}

https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/datasets/1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e/runs/4d3c2b1a-0f9e-4d8c-7b6a-5f4e3d2c1b0a/cancel