HTTP request
{location-id} with your supported location.
Request body
The request body contains data with the following structure:Fields
| Field | Type | Description |
|---|---|---|
model | body, object(TrainingCommandViewModel) | Required. Model used for training. |
TrainingCommandViewModel
| Field | Type | Description |
|---|---|---|
task_id | string | Required. Task ID. |
file_id | string | Required. File ID. |
fields[] | object(FieldCommandViewModel) | Required. Set of fields for training. |
FieldCommandViewModel
| Field | Type | Description |
|---|---|---|
name | string | Required. Field name. |
rectangles[] | object(RectangleViewModel) | Required. Field rectangles. |
RectangleViewModel
| Field | Type | Description |
|---|---|---|
page_id | integer($int32) | Required. Internal page ID. |
x1 | integer($int32) | Required. Coordinate of x1. |
y1 | integer($int32) | Required. Coordinate of y1. |
x2 | integer($int32) | Required. Coordinate of x2. |
y2 | integer($int32) | Required. Coordinate of y2. |
Response
If successful, the server returns a204 No Content HTTP status.