メインコンテンツへスキップ
データ抽出モデルを学習します。

HTTP リクエスト

POST https://api-{location-id}.flexicapture.com/v2/training
{location-id}対応ロケーションに応じた値に置き換えます。

リクエスト本文

リクエスト本文には、次の構造のデータが含まれます。
{
  "task_id": "string",
  "file_id": "string",
  "fields": [
    {
      "name": "string",
      "rectangles": [
        {
          "page_id": 0,
          "x1": 0,
          "y1": 0,
          "x2": 0,
          "y2": 0
        }
      ]
    }
  ]
}

フィールド

field説明
modelbody, object(TrainingCommandViewModel)必須。学習に使用する Model。

TrainingCommandViewModel

field説明
task_idstring必須。タスクID。
file_idstring必須。ファイル ID。
fields[]object(FieldCommandViewModel)必須。学習用の field のセット。

FieldCommandViewModel

field説明
namestring必須。field の名前。
rectangles[]object(RectangleViewModel)必須。field の矩形。

RectangleViewModel

field説明
page_idinteger($int32)必須。内部ページ ID。
x1integer($int32)必須。x1 の座標。
y1integer($int32)必須。y1 の座標。
x2integer($int32)必須。x2 の座標。
y2integer($int32)必須。y2 の座標。

レスポンス

成功した場合、サーバーから HTTP ステータス 204 No Content が返されます。