Supercoach API (1.0)
Download OpenAPI specification:Download
Retrieve all assembly revisions
Each Assembly is made up of one or more Assembly Revisions, which act as "versions" of a given assembly. This endpoint retrieves every revision of every assembly.
Responses
Response samples
- 200
- 404
{- "status": "string",
- "msg": [
- {
- "id": {
- "uuid": "string"
}, - "name": "string",
- "description": "string",
- "image_link": "string",
- "tenant_id": "string",
- "training_complete": true,
- "active_revision": "string",
- "published": true
}
]
}
Retrieve a specific assembly revision
path Parameters
revision_id required | string Example: d8dc6895-da23-4f4e-9eec-b508b8f9b3e2 The ID of the assembly revision |
Responses
Response samples
- 200
- 404
{- "status": "string",
- "msg": {
- "id": {
- "uuid": "string"
}, - "name": "string",
- "description": "string",
- "image_link": "string",
- "tenant_id": "string",
- "training_complete": true,
- "active_revision": "string",
- "published": true
}
}
Create or Update a specific assembly revision
path Parameters
revision_id required | string Example: d8dc6895-da23-4f4e-9eec-b508b8f9b3e2 The ID of the assembly revision |
Request Body schema: application/json
name | string |
description | string |
image_link | string |
tenant_id | string |
training_complete | boolean |
active_revision | string |
published | boolean |
Responses
Request samples
- Payload
{- "name": "Contactor Installation",
- "description": "A new description",
- "image_link": "/model/sample/image/57618016-cd00-4fc8-85f5-e4b26304c6ba/step-3_good",
- "training_complete": true,
- "active_revision": "57618016-cd00-4fc8-85f5-e4b26304c6ba",
- "published": true
}
Response samples
- 200
{- "status": "string",
- "msg": {
- "uuid": "string"
}
}
Set the active revision for a specific assembly revision
path Parameters
revision_id required | string Example: d8dc6895-da23-4f4e-9eec-b508b8f9b3e2 The ID of the assembly revision |
Request Body schema: application/json
assembly_id | string |
Responses
Request samples
- Payload
{- "assembly_id": "57618016-cd00-4fc8-85f5-e4b26304c6ba"
}
Response samples
- 200
{- "status": "ok",
- "msg": ""
}
Retrieve all revisions of a specific assembly
path Parameters
revision_id required | string Example: d8dc6895-da23-4f4e-9eec-b508b8f9b3e2 The ID of the assembly revision |
Responses
Response samples
- 200
- 404
{- "status": "string",
- "msg": [
- {
- "id": {
- "uuid": "string"
}, - "name": "string",
- "description": "string",
- "image_link": "string",
- "tenant_id": "string",
- "training_complete": true,
- "revision_id": {
- "uuid": "string"
}, - "parent_id": {
- "uuid": "string"
}, - "revision": 0,
- "steps": {
- "steps": [
- {
- "id": "string",
- "name": "string",
- "description": "string",
- "image_link": "string",
- "video_link": "string",
- "overlay_link": "string",
- "minimum_predict": 0,
- "benchmark": 0,
- "roi_zoom": "string",
- "camera_id": "string",
- "perspective_change": true,
- "assembly_id": {
- "uuid": "string"
}, - "next_step_id": "string",
- "previous_step_id": "string",
- "options": {
- "page": 0,
- "page_size": 0
}, - "step_data": [
- {
- "step_data_info": [
- {
- "id": null,
- "label": null,
- "link": null,
- "value": null,
- "step_data_id": null,
- "type": null,
- "name": null,
- "options": null
}
], - "id": "string",
- "step_id": "string",
- "data_type": "ml",
- "units": "string",
- "name": "string",
- "tolerance": 0,
- "options": {
- "page": 0,
- "page_size": 0
}, - "ocr_capture_variable_info": [
- {
- "variable_name": null,
- "bounding_box": null,
- "original_text_value": null,
- "step_number": null
}
]
}
]
}
]
}, - "augmentation": {
- "id": "string",
- "assembly_id": {
- "uuid": "string"
}, - "lighting_aug": 0,
- "placement_aug": 0,
- "color_aug": 0
}, - "options": {
- "page": 0,
- "page_size": 0
}, - "classes": [
- "string"
], - "product_version": "string",
- "published": true,
- "approver": "string",
- "notes": "string",
- "record_videos": true
}
]
}
Retrieve all assemblies
Recall that Assembly Revisions are made up of one or more assemblies. Assemblies are the discrete items you perform coaching on. This endpoint retrieves every assembly in the database.
Responses
Response samples
- 200
- 404
{- "status": "string",
- "msg": [
- {
- "id": {
- "uuid": "string"
}, - "name": "string",
- "description": "string",
- "image_link": "string",
- "tenant_id": "string",
- "training_complete": true,
- "revision_id": {
- "uuid": "string"
}, - "parent_id": {
- "uuid": "string"
}, - "revision": 0,
- "steps": {
- "steps": [
- {
- "id": "string",
- "name": "string",
- "description": "string",
- "image_link": "string",
- "video_link": "string",
- "overlay_link": "string",
- "minimum_predict": 0,
- "benchmark": 0,
- "roi_zoom": "string",
- "camera_id": "string",
- "perspective_change": true,
- "assembly_id": {
- "uuid": "string"
}, - "next_step_id": "string",
- "previous_step_id": "string",
- "options": {
- "page": 0,
- "page_size": 0
}, - "step_data": [
- {
- "step_data_info": [
- {
- "id": null,
- "label": null,
- "link": null,
- "value": null,
- "step_data_id": null,
- "type": null,
- "name": null,
- "options": null
}
], - "id": "string",
- "step_id": "string",
- "data_type": "ml",
- "units": "string",
- "name": "string",
- "tolerance": 0,
- "options": {
- "page": 0,
- "page_size": 0
}, - "ocr_capture_variable_info": [
- {
- "variable_name": null,
- "bounding_box": null,
- "original_text_value": null,
- "step_number": null
}
]
}
]
}
]
}, - "augmentation": {
- "id": "string",
- "assembly_id": {
- "uuid": "string"
}, - "lighting_aug": 0,
- "placement_aug": 0,
- "color_aug": 0
}, - "options": {
- "page": 0,
- "page_size": 0
}, - "classes": [
- "string"
], - "product_version": "string",
- "published": true,
- "approver": "string",
- "notes": "string",
- "record_videos": true
}
]
}
Create an assembly
Deprecated. We recommend using POST /model/new/{assembly_id}
and navigating the training workflow to create an assembly.
Request Body schema: application/json
name | string |
description | string |
image_link | string |
tenant_id | string |
training_complete | boolean |
object (AssemblyId) | |
object (AssemblyId) | |
revision | integer <int32> |
object (Steps) | |
object (Augmentation) | |
object (DatabaseOptions) | |
classes | Array of strings |
product_version | string |
published | boolean |
approver | string |
notes | string |
record_videos | boolean |
Responses
Request samples
- Payload
{- "name": "string",
- "description": "string",
- "image_link": "string",
- "tenant_id": "string",
- "training_complete": true,
- "revision_id": {
- "uuid": "string"
}, - "parent_id": {
- "uuid": "string"
}, - "revision": 0,
- "steps": {
- "steps": [
- {
- "id": "string",
- "name": "string",
- "description": "string",
- "image_link": "string",
- "video_link": "string",
- "overlay_link": "string",
- "minimum_predict": 0,
- "benchmark": 0,
- "roi_zoom": "string",
- "camera_id": "string",
- "perspective_change": true,
- "assembly_id": {
- "uuid": "string"
}, - "next_step_id": "string",
- "previous_step_id": "string",
- "options": {
- "page": 0,
- "page_size": 0
}, - "step_data": [
- {
- "step_data_info": [
- {
- "id": "string",
- "label": "string",
- "link": "string",
- "value": "string",
- "step_data_id": "string",
- "type": "string",
- "name": "string",
- "options": {
- "page": 0,
- "page_size": 0
}
}
], - "id": "string",
- "step_id": "string",
- "data_type": "ml",
- "units": "string",
- "name": "string",
- "tolerance": 0,
- "options": {
- "page": 0,
- "page_size": 0
}, - "ocr_capture_variable_info": [
- {
- "variable_name": "string",
- "bounding_box": "string",
- "original_text_value": "string",
- "step_number": "string"
}
]
}
]
}
]
}, - "augmentation": {
- "id": "string",
- "assembly_id": {
- "uuid": "string"
}, - "lighting_aug": 0,
- "placement_aug": 0,
- "color_aug": 0
}, - "options": {
- "page": 0,
- "page_size": 0
}, - "classes": [
- "string"
], - "product_version": "string",
- "published": true,
- "approver": "string",
- "notes": "string",
- "record_videos": true
}
Response samples
- 404
{- "status": "string",
- "msg": {
- "uuid": "string"
}
}
Retrieve a specific assembly
path Parameters
assembly_id required | string Example: 57618016-cd00-4fc8-85f5-e4b26304c6ba The ID of the assembly |
Responses
Response samples
- 200
- 404
{- "status": "string",
- "msg": {
- "id": {
- "uuid": "string"
}, - "name": "string",
- "description": "string",
- "image_link": "string",
- "tenant_id": "string",
- "training_complete": true,
- "revision_id": {
- "uuid": "string"
}, - "parent_id": {
- "uuid": "string"
}, - "revision": 0,
- "steps": {
- "steps": [
- {
- "id": "string",
- "name": "string",
- "description": "string",
- "image_link": "string",
- "video_link": "string",
- "overlay_link": "string",
- "minimum_predict": 0,
- "benchmark": 0,
- "roi_zoom": "string",
- "camera_id": "string",
- "perspective_change": true,
- "assembly_id": {
- "uuid": "string"
}, - "next_step_id": "string",
- "previous_step_id": "string",
- "options": {
- "page": 0,
- "page_size": 0
}, - "step_data": [
- {
- "step_data_info": [
- {
- "id": "string",
- "label": "string",
- "link": "string",
- "value": "string",
- "step_data_id": "string",
- "type": "string",
- "name": "string",
- "options": {
- "page": null,
- "page_size": null
}
}
], - "id": "string",
- "step_id": "string",
- "data_type": "ml",
- "units": "string",
- "name": "string",
- "tolerance": 0,
- "options": {
- "page": 0,
- "page_size": 0
}, - "ocr_capture_variable_info": [
- {
- "variable_name": "string",
- "bounding_box": "string",
- "original_text_value": "string",
- "step_number": "string"
}
]
}
]
}
]
}, - "augmentation": {
- "id": "string",
- "assembly_id": {
- "uuid": "string"
}, - "lighting_aug": 0,
- "placement_aug": 0,
- "color_aug": 0
}, - "options": {
- "page": 0,
- "page_size": 0
}, - "classes": [
- "string"
], - "product_version": "string",
- "published": true,
- "approver": "string",
- "notes": "string",
- "record_videos": true
}
}
Create or Update a specific assembly
path Parameters
assembly_id required | string |
Request Body schema: application/json
object (AssemblyId) | |
name | string |
description | string |
image_link | string |
tenant_id | string |
training_complete | boolean |
object (AssemblyId) | |
object (AssemblyId) | |
revision | integer <int32> |
object (Steps) | |
object (Augmentation) | |
object (DatabaseOptions) | |
classes | Array of strings |
product_version | string |
published | boolean |
approver | string |
notes | string |
record_videos | boolean |
Responses
Request samples
- Payload
{- "id": {
- "uuid": "string"
}, - "name": "string",
- "description": "string",
- "image_link": "string",
- "tenant_id": "string",
- "training_complete": true,
- "revision_id": {
- "uuid": "string"
}, - "parent_id": {
- "uuid": "string"
}, - "revision": 0,
- "steps": {
- "steps": [
- {
- "id": "string",
- "name": "string",
- "description": "string",
- "image_link": "string",
- "video_link": "string",
- "overlay_link": "string",
- "minimum_predict": 0,
- "benchmark": 0,
- "roi_zoom": "string",
- "camera_id": "string",
- "perspective_change": true,
- "assembly_id": {
- "uuid": "string"
}, - "next_step_id": "string",
- "previous_step_id": "string",
- "options": {
- "page": 0,
- "page_size": 0
}, - "step_data": [
- {
- "step_data_info": [
- {
- "id": "string",
- "label": "string",
- "link": "string",
- "value": "string",
- "step_data_id": "string",
- "type": "string",
- "name": "string",
- "options": {
- "page": 0,
- "page_size": 0
}
}
], - "id": "string",
- "step_id": "string",
- "data_type": "ml",
- "units": "string",
- "name": "string",
- "tolerance": 0,
- "options": {
- "page": 0,
- "page_size": 0
}, - "ocr_capture_variable_info": [
- {
- "variable_name": "string",
- "bounding_box": "string",
- "original_text_value": "string",
- "step_number": "string"
}
]
}
]
}
]
}, - "augmentation": {
- "id": "string",
- "assembly_id": {
- "uuid": "string"
}, - "lighting_aug": 0,
- "placement_aug": 0,
- "color_aug": 0
}, - "options": {
- "page": 0,
- "page_size": 0
}, - "classes": [
- "string"
], - "product_version": "string",
- "published": true,
- "approver": "string",
- "notes": "string",
- "record_videos": true
}
Response samples
- 200
{- "status": "string",
- "msg": {
- "uuid": "string"
}
}
Retrieve all defined OCR Capture Variables
An OCR Capture Variable is a variable defined in a Serial Number Capture step. This retrieves all variables defined in every Serial Number Capture step for a specific assembly.
path Parameters
assembly_id required | string Example: af7ad140-9548-4bef-8c9b-792e80d3f687 The ID of the assembly |
Responses
Response samples
- 200
{- "status": "string",
- "msg": [
- {
- "variable_name": "string",
- "bounding_box": "string",
- "original_text_value": "string",
- "step_number": "string"
}
]
}
Get all steps for a specific assembly
Each assembly is made up of Steps. During coaching, these steps are shown to the operator chronologically to guide them from start to completion of the assembly. This endpoint retrieves every Step for a specific assembly.
path Parameters
assembly_id required | string Example: 57618016-cd00-4fc8-85f5-e4b26304c6ba The ID of the assembly |
Responses
Response samples
- 200
- 404
{- "status": "string",
- "msg": [
- {
- "id": "string",
- "name": "string",
- "description": "string",
- "image_link": "string",
- "video_link": "string",
- "overlay_link": "string",
- "minimum_predict": 0,
- "benchmark": 0,
- "roi_zoom": "string",
- "camera_id": "string",
- "perspective_change": true,
- "assembly_id": {
- "uuid": "string"
}, - "next_step_id": "string",
- "previous_step_id": "string",
- "options": {
- "page": 0,
- "page_size": 0
}, - "step_data": [
- {
- "step_data_info": [
- {
- "id": "string",
- "label": "string",
- "link": "string",
- "value": "string",
- "step_data_id": "string",
- "type": "string",
- "name": "string",
- "options": {
- "page": 0,
- "page_size": 0
}
}
], - "id": "string",
- "step_id": "string",
- "data_type": "ml",
- "units": "string",
- "name": "string",
- "tolerance": 0,
- "options": {
- "page": 0,
- "page_size": 0
}, - "ocr_capture_variable_info": [
- {
- "variable_name": "string",
- "bounding_box": "string",
- "original_text_value": "string",
- "step_number": "string"
}
]
}
]
}
]
}
Append a new step to a specific assembly
path Parameters
assembly_id required | string |
Request Body schema: application/json
name | string |
description | string |
image_link | string |
video_link | string |
overlay_link | string |
minimum_predict | number <float> |
benchmark | number <float> |
roi_zoom | string |
camera_id | string |
object (AssemblyId) |
Responses
Request samples
- Payload
{- "name": "string",
- "description": "string",
- "image_link": "string",
- "video_link": "string",
- "overlay_link": "string",
- "minimum_predict": 0,
- "benchmark": 0,
- "roi_zoom": "string",
- "camera_id": "string",
- "assembly_id": {
- "uuid": "string"
}
}
Response samples
- 200
{- "id": 0
}
Get a step from a specific assembly
path Parameters
assembly_id required | string |
step_id required | string |
Responses
Response samples
- 200
{- "status": "string",
- "msg": {
- "id": "string",
- "name": "string",
- "description": "string",
- "image_link": "string",
- "video_link": "string",
- "overlay_link": "string",
- "minimum_predict": 0,
- "benchmark": 0,
- "roi_zoom": "string",
- "camera_id": "string",
- "perspective_change": true,
- "assembly_id": {
- "uuid": "string"
}, - "next_step_id": "string",
- "previous_step_id": "string",
- "options": {
- "page": 0,
- "page_size": 0
}, - "step_data": [
- {
- "step_data_info": [
- {
- "id": "string",
- "label": "string",
- "link": "string",
- "value": "string",
- "step_data_id": "string",
- "type": "string",
- "name": "string",
- "options": {
- "page": 0,
- "page_size": 0
}
}
], - "id": "string",
- "step_id": "string",
- "data_type": "ml",
- "units": "string",
- "name": "string",
- "tolerance": 0,
- "options": {
- "page": 0,
- "page_size": 0
}, - "ocr_capture_variable_info": [
- {
- "variable_name": "string",
- "bounding_box": "string",
- "original_text_value": "string",
- "step_number": "string"
}
]
}
]
}
}
Update information about a specific step
path Parameters
assembly_id required | string |
step_id required | string |
Request Body schema: application/json
id | string |
name | string |
description | string |
image_link | string |
video_link | string |
overlay_link | string |
minimum_predict | number <float> |
benchmark | number <float> |
roi_zoom | string |
camera_id | string |
perspective_change | boolean |
object (AssemblyId) | |
next_step_id | string |
previous_step_id | string |
object (DatabaseOptions) | |
Array of objects (StepData) |
Responses
Request samples
- Payload
{- "id": "string",
- "name": "string",
- "description": "string",
- "image_link": "string",
- "video_link": "string",
- "overlay_link": "string",
- "minimum_predict": 0,
- "benchmark": 0,
- "roi_zoom": "string",
- "camera_id": "string",
- "perspective_change": true,
- "assembly_id": {
- "uuid": "string"
}, - "next_step_id": "string",
- "previous_step_id": "string",
- "options": {
- "page": 0,
- "page_size": 0
}, - "step_data": [
- {
- "step_data_info": [
- {
- "id": "string",
- "label": "string",
- "link": "string",
- "value": "string",
- "step_data_id": "string",
- "type": "string",
- "name": "string",
- "options": {
- "page": 0,
- "page_size": 0
}
}
], - "id": "string",
- "step_id": "string",
- "data_type": "ml",
- "units": "string",
- "name": "string",
- "tolerance": 0,
- "options": {
- "page": 0,
- "page_size": 0
}, - "ocr_capture_variable_info": [
- {
- "variable_name": "string",
- "bounding_box": "string",
- "original_text_value": "string",
- "step_number": "string"
}
]
}
]
}
Response samples
- 200
{- "id": 0
}
Add or Update information of an augmentation for a specific assembly
path Parameters
assembly_id required | string |
Request Body schema: application/json
id | string |
object (AssemblyId) | |
lighting_aug | number <float> |
placement_aug | number <float> |
color_aug | number <float> |
Responses
Request samples
- Payload
{- "id": "string",
- "assembly_id": {
- "uuid": "string"
}, - "lighting_aug": 0,
- "placement_aug": 0,
- "color_aug": 0
}
Response samples
- 200
{- "status": "string",
- "msg": {
- "uuid": "string"
}
}
Retrieve performance information of an operator for a specific assembly.
path Parameters
record_id required | string |
operator_id required | string |
Responses
Response samples
- 200
{- "status": "string",
- "msg": {
- "operator_metrics": [
- {
- "operator": {
- "id": "string",
- "first_name": "string",
- "last_name": "string",
- "num_records": 0,
- "options": {
- "page": 0,
- "page_size": 0
}
}, - "step": {
- "id": "string",
- "name": "string",
- "description": "string",
- "image_link": "string",
- "video_link": "string",
- "overlay_link": "string",
- "minimum_predict": 0,
- "benchmark": 0,
- "roi_zoom": "string",
- "camera_id": "string",
- "perspective_change": true,
- "assembly_id": {
- "uuid": "string"
}, - "next_step_id": "string",
- "previous_step_id": "string",
- "options": {
- "page": 0,
- "page_size": 0
}, - "step_data": [
- {
- "step_data_info": [
- {
- "id": "string",
- "label": "string",
- "link": "string",
- "value": "string",
- "step_data_id": "string",
- "type": "string",
- "name": "string",
- "options": {
- "page": null,
- "page_size": null
}
}
], - "id": "string",
- "step_id": "string",
- "data_type": "ml",
- "units": "string",
- "name": "string",
- "tolerance": 0,
- "options": {
- "page": 0,
- "page_size": 0
}, - "ocr_capture_variable_info": [
- {
- "variable_name": "string",
- "bounding_box": "string",
- "original_text_value": "string",
- "step_number": "string"
}
]
}
]
}, - "assembly_id": {
- "uuid": "string"
}, - "step_record": {
- "prediction": 0,
- "complete": true,
- "time_taken": 0,
- "metric_datetime": "string",
- "delta_from_benchmark": 0,
- "benchmark": 0
}, - "assembly_record": {
- "id": {
- "uuid": "string"
}, - "ref_assembly_id": {
- "uuid": "string"
}, - "operator": {
- "id": "string",
- "first_name": "string",
- "last_name": "string",
- "num_records": 0,
- "options": {
- "page": 0,
- "page_size": 0
}
}, - "benchmark": 0,
- "complete": true,
- "assembly_record_datetime": "string",
- "num_records": 0,
- "qa_report_link": "string",
- "options": {
- "page": 0,
- "page_size": 0
}
}, - "options": {
- "page": 0,
- "page_size": 0
}
}
], - "avg_time": 0,
- "avg_step_time": 0,
- "quality": 0
}
}
Retrieve all defined OCR Capture Variables for a specific step
An OCR Capture Variable is a variable defined in a Serial Number Capture step. Given a Step ID, this retrieves all variables defined for that specific step.
path Parameters
step_id required | integer Example: 245 The Step ID in question |
Responses
Response samples
- 200
{- "status": "string",
- "msg": [
- {
- "variable_name": "string",
- "bounding_box": "string",
- "original_text_value": "string",
- "step_number": "string"
}
]
}
Delete all OCR Capture Variables for a specific step
An OCR Capture Variable is a variable defined in a Serial Number Capture step. Given a Step ID, this retrieves all variables defined for that specific step.
path Parameters
step_id required | string |
Responses
Response samples
- 200
{- "status": "ok",
- "msg": ""
}
Retrieve step data for a specific step
Each Step is made up of StepData, an array of actions that describe what occurs in this Step. This returns all StepData for a specific Step.
path Parameters
step_id required | string |
Responses
Response samples
- 200
{- "status": "string",
- "msg": {
- "step_data_info": [
- {
- "id": "string",
- "label": "string",
- "link": "string",
- "value": "string",
- "step_data_id": "string",
- "type": "string",
- "name": "string",
- "options": {
- "page": 0,
- "page_size": 0
}
}
], - "id": "string",
- "step_id": "string",
- "data_type": "ml",
- "units": "string",
- "name": "string",
- "tolerance": 0,
- "options": {
- "page": 0,
- "page_size": 0
}, - "ocr_capture_variable_info": [
- {
- "variable_name": "string",
- "bounding_box": "string",
- "original_text_value": "string",
- "step_number": "string"
}
]
}
}
Add step data to a specific step
path Parameters
step_id required | string |
Request Body schema: application/json
Array of objects (StepDataInfo) | |
data_type | string Describes what this StepData's action refers to. Possible values are: 'ml', 'ocr-check', 'ocr-capture', 'ocr-verify', 'torque', 'input', 'output', 'qa'. |
units | string |
name | string |
tolerance | number <float> |
object (DatabaseOptions) | |
Array of objects (OCRCaptureVariableInfo) |
Responses
Request samples
- Payload
{- "step_data_info": [
- {
- "id": "string",
- "label": "string",
- "link": "string",
- "value": "string",
- "step_data_id": "string",
- "type": "string",
- "name": "string",
- "options": {
- "page": 0,
- "page_size": 0
}
}
], - "data_type": "ml",
- "units": "string",
- "name": "string",
- "tolerance": 0,
- "options": {
- "page": 0,
- "page_size": 0
}, - "ocr_capture_variable_info": [
- {
- "variable_name": "string",
- "bounding_box": "string",
- "original_text_value": "string",
- "step_number": "string"
}
]
}
Response samples
- 201
{- "id": 0
}
Get all StepDataInfo from specific StepData
Just like Steps are made up of StepData, StepData is made up of StepDataInfo. StepDataInfo is primarily key/value pairs that the are utilized for coaching in some way. The Key/Values that the StepDataInfo contains depends on the context of the StepData's data_type
field.
path Parameters
step_id required | string |
step_data_id required | string |
Responses
Response samples
- 200
{- "status": "string",
- "msg": [
- {
- "id": "string",
- "label": "string",
- "link": "string",
- "value": "string",
- "step_data_id": "string",
- "type": "string",
- "name": "string",
- "options": {
- "page": 0,
- "page_size": 0
}
}
]
}
Add a new StepDataInfo to a specific Step
path Parameters
step_id required | string |
step_data_id required | string |
Request Body schema: application/json
label | string |
link | string |
value | string |
step_data_id | string |
type | string |
name | string |
object (DatabaseOptions) |
Responses
Request samples
- Payload
{- "label": "string",
- "link": "string",
- "value": "string",
- "step_data_id": "string",
- "type": "string",
- "name": "string",
- "options": {
- "page": 0,
- "page_size": 0
}
}
Response samples
- 201
{- "id": 0
}
Add or Update information about a specific StepData
path Parameters
step_id required | string |
step_data_id required | string |
Request Body schema: application/json
Array of objects (StepDataInfo) | |
id | string |
step_id | string |
data_type | string Describes what this StepData's action refers to. Possible values are: 'ml', 'ocr-check', 'ocr-capture', 'ocr-verify', 'torque', 'input', 'output', 'qa'. |
units | string |
name | string |
tolerance | number <float> |
object (DatabaseOptions) | |
Array of objects (OCRCaptureVariableInfo) |
Responses
Request samples
- Payload
{- "step_data_info": [
- {
- "id": "string",
- "label": "string",
- "link": "string",
- "value": "string",
- "step_data_id": "string",
- "type": "string",
- "name": "string",
- "options": {
- "page": 0,
- "page_size": 0
}
}
], - "id": "string",
- "step_id": "string",
- "data_type": "ml",
- "units": "string",
- "name": "string",
- "tolerance": 0,
- "options": {
- "page": 0,
- "page_size": 0
}, - "ocr_capture_variable_info": [
- {
- "variable_name": "string",
- "bounding_box": "string",
- "original_text_value": "string",
- "step_number": "string"
}
]
}
Response samples
- 200
{- "id": 0
}
Add or Update information about a specific StepDataInfo
path Parameters
step_data_info_id required | string |
Request Body schema: application/json
id | string |
label | string |
link | string |
value | string |
step_data_id | string |
type | string |
name | string |
object (DatabaseOptions) |
Responses
Request samples
- Payload
{- "id": "string",
- "label": "string",
- "link": "string",
- "value": "string",
- "step_data_id": "string",
- "type": "string",
- "name": "string",
- "options": {
- "page": 0,
- "page_size": 0
}
}
Response samples
- 200
{- "id": 0
}
Retrieve metrics info from a specific assembly record
Each assembly record is a coaching session performed by a particular operator. Although redundant, the operator ID of the assembly record is required as well.
path Parameters
assembly_record_id required | string Example: 796f3b09-b3a1-4410-8d1a-c8ba38c0f751 The ID of the assembly record |
operator_id required | integer Example: 1 The ID of the assembly |
Responses
Response samples
- 200
- 404
{- "status": "string",
- "msg": {
- "operator_metrics": [
- {
- "operator": {
- "id": "string",
- "first_name": "string",
- "last_name": "string",
- "num_records": 0,
- "options": {
- "page": 0,
- "page_size": 0
}
}, - "step": {
- "id": "string",
- "name": "string",
- "description": "string",
- "image_link": "string",
- "video_link": "string",
- "overlay_link": "string",
- "minimum_predict": 0,
- "benchmark": 0,
- "roi_zoom": "string",
- "camera_id": "string",
- "perspective_change": true,
- "assembly_id": {
- "uuid": "string"
}, - "next_step_id": "string",
- "previous_step_id": "string",
- "options": {
- "page": 0,
- "page_size": 0
}, - "step_data": [
- {
- "step_data_info": [
- {
- "id": "string",
- "label": "string",
- "link": "string",
- "value": "string",
- "step_data_id": "string",
- "type": "string",
- "name": "string",
- "options": {
- "page": null,
- "page_size": null
}
}
], - "id": "string",
- "step_id": "string",
- "data_type": "ml",
- "units": "string",
- "name": "string",
- "tolerance": 0,
- "options": {
- "page": 0,
- "page_size": 0
}, - "ocr_capture_variable_info": [
- {
- "variable_name": "string",
- "bounding_box": "string",
- "original_text_value": "string",
- "step_number": "string"
}
]
}
]
}, - "assembly_id": {
- "uuid": "string"
}, - "step_record": {
- "prediction": 0,
- "complete": true,
- "time_taken": 0,
- "metric_datetime": "string",
- "delta_from_benchmark": 0,
- "benchmark": 0
}, - "assembly_record": {
- "id": {
- "uuid": "string"
}, - "ref_assembly_id": {
- "uuid": "string"
}, - "operator": {
- "id": "string",
- "first_name": "string",
- "last_name": "string",
- "num_records": 0,
- "options": {
- "page": 0,
- "page_size": 0
}
}, - "benchmark": 0,
- "complete": true,
- "assembly_record_datetime": "string",
- "num_records": 0,
- "qa_report_link": "string",
- "options": {
- "page": 0,
- "page_size": 0
}
}, - "options": {
- "page": 0,
- "page_size": 0
}
}
], - "avg_time": 0,
- "avg_step_time": 0,
- "quality": 0
}
}
Retrieve information about all previous coaching sessions of a specific assembly
path Parameters
assembly_id required | string Example: 57618016-cd00-4fc8-85f5-e4b26304c6ba The ID of the assembly |
Responses
Response samples
- 200
{- "status": "string",
- "msg": [
- {
- "id": {
- "uuid": "string"
}, - "ref_assembly_id": {
- "uuid": "string"
}, - "operator": {
- "id": "string",
- "first_name": "string",
- "last_name": "string",
- "num_records": 0,
- "options": {
- "page": 0,
- "page_size": 0
}
}, - "benchmark": 0,
- "complete": true,
- "assembly_record_datetime": "string",
- "num_records": 0,
- "qa_report_link": "string",
- "options": {
- "page": 0,
- "page_size": 0
}
}
]
}
Retrieve information about a specific record
path Parameters
record_id required | string Example: 796f3b09-b3a1-4410-8d1a-c8ba38c0f751 The ID of the assembly record |
Responses
Response samples
- 200
- 404
{- "status": "string",
- "msg": {
- "id": {
- "uuid": "string"
}, - "ref_assembly_id": {
- "uuid": "string"
}, - "operator": {
- "id": "string",
- "first_name": "string",
- "last_name": "string",
- "num_records": 0,
- "options": {
- "page": 0,
- "page_size": 0
}
}, - "benchmark": 0,
- "complete": true,
- "assembly_record_datetime": "string",
- "num_records": 0,
- "qa_report_link": "string",
- "options": {
- "page": 0,
- "page_size": 0
}
}
}
Add or Update information about a specific record
path Parameters
record_id required | string Example: 796f3b09-b3a1-4410-8d1a-c8ba38c0f751 The ID of the assembly record |
Request Body schema: application/json
object (AssemblyId) | |
object (Operator) | |
benchmark | number <float> |
complete | boolean |
assembly_record_datetime | string |
Responses
Request samples
- Payload
{- "ref_assembly_id": {
- "uuid": "57618016-cd00-4fc8-85f5-e4b26304c6ba"
}, - "operator": {
- "id": 1
}, - "benchmark": 7.8,
- "complete": true,
- "assembly_record_datetime": "2024-05-04 07:00:00"
}
Response samples
- 200
{- "status": "string",
- "msg": {
- "id": {
- "uuid": "string"
}, - "ref_assembly_id": {
- "uuid": "string"
}, - "operator": {
- "id": "string",
- "first_name": "string",
- "last_name": "string",
- "num_records": 0,
- "options": {
- "page": 0,
- "page_size": 0
}
}, - "benchmark": 0,
- "complete": true,
- "assembly_record_datetime": "string",
- "num_records": 0,
- "qa_report_link": "string",
- "options": {
- "page": 0,
- "page_size": 0
}
}
}
Get the most recent assembly record for a specific assembly
Despite this returning an array, it only returns the most recent record.
path Parameters
assembly_id required | string Example: 57618016-cd00-4fc8-85f5-e4b26304c6ba The ID of the assembly to retrieve records from |
limit required | integer Example: 1 Required, but currently unused. Only returns one result. |
Responses
Response samples
- 200
- 404
{- "status": "string",
- "msg": [
- {
- "id": {
- "uuid": "string"
}, - "ref_assembly_id": {
- "uuid": "string"
}, - "operator": {
- "id": "string",
- "first_name": "string",
- "last_name": "string",
- "num_records": 0,
- "options": {
- "page": 0,
- "page_size": 0
}
}, - "benchmark": 0,
- "complete": true,
- "assembly_record_datetime": "string",
- "num_records": 0,
- "qa_report_link": "string",
- "options": {
- "page": 0,
- "page_size": 0
}
}
]
}
Get the most recent record for a specific operator
Despite this returning an array, it only returns the most recent record.
path Parameters
operator_id required | integer Example: 1 The ID of the Operator to retrieve most recent record from |
limit required | integer Example: 1 Required, but currently unused. Only returns one result. |
Responses
Response samples
- 200
- 404
{- "status": "string",
- "msg": [
- {
- "id": {
- "uuid": "string"
}, - "ref_assembly_id": {
- "uuid": "string"
}, - "operator": {
- "id": "string",
- "first_name": "string",
- "last_name": "string",
- "num_records": 0,
- "options": {
- "page": 0,
- "page_size": 0
}
}, - "benchmark": 0,
- "complete": true,
- "assembly_record_datetime": "string",
- "num_records": 0,
- "qa_report_link": "string",
- "options": {
- "page": 0,
- "page_size": 0
}
}
]
}
Retrieve performance information of specific step, performed by a specific operator, of a previously coached assembly
path Parameters
record_id required | string |
operator_id required | string |
step_id required | string |
Responses
Response samples
- 200
{- "status": "string",
- "msg": [
- {
- "operator": {
- "id": "string",
- "first_name": "string",
- "last_name": "string",
- "num_records": 0,
- "options": {
- "page": 0,
- "page_size": 0
}
}, - "step": {
- "id": "string",
- "name": "string",
- "description": "string",
- "image_link": "string",
- "video_link": "string",
- "overlay_link": "string",
- "minimum_predict": 0,
- "benchmark": 0,
- "roi_zoom": "string",
- "camera_id": "string",
- "perspective_change": true,
- "assembly_id": {
- "uuid": "string"
}, - "next_step_id": "string",
- "previous_step_id": "string",
- "options": {
- "page": 0,
- "page_size": 0
}, - "step_data": [
- {
- "step_data_info": [
- {
- "id": "string",
- "label": "string",
- "link": "string",
- "value": "string",
- "step_data_id": "string",
- "type": "string",
- "name": "string",
- "options": {
- "page": 0,
- "page_size": 0
}
}
], - "id": "string",
- "step_id": "string",
- "data_type": "ml",
- "units": "string",
- "name": "string",
- "tolerance": 0,
- "options": {
- "page": 0,
- "page_size": 0
}, - "ocr_capture_variable_info": [
- {
- "variable_name": "string",
- "bounding_box": "string",
- "original_text_value": "string",
- "step_number": "string"
}
]
}
]
}, - "assembly_id": {
- "uuid": "string"
}, - "step_record": {
- "prediction": 0,
- "complete": true,
- "time_taken": 0,
- "metric_datetime": "string",
- "delta_from_benchmark": 0,
- "benchmark": 0
}, - "assembly_record": {
- "id": {
- "uuid": "string"
}, - "ref_assembly_id": {
- "uuid": "string"
}, - "operator": {
- "id": "string",
- "first_name": "string",
- "last_name": "string",
- "num_records": 0,
- "options": {
- "page": 0,
- "page_size": 0
}
}, - "benchmark": 0,
- "complete": true,
- "assembly_record_datetime": "string",
- "num_records": 0,
- "qa_report_link": "string",
- "options": {
- "page": 0,
- "page_size": 0
}
}, - "options": {
- "page": 0,
- "page_size": 0
}
}
]
}
Add an OCR Capture Variable to an Assembly Record
path Parameters
assembly_record_id required | string |
Request Body schema: application/json
assembly_record_id | string |
variable_name | string |
variable_value | string |
Responses
Request samples
- Payload
{- "assembly_record_id": "string",
- "variable_name": "string",
- "variable_value": "string"
}
Response samples
- 200
{- "status": "ok",
- "msg": ""
}
Add a new operator
Request Body schema: application/json
id | string |
first_name | string |
last_name | string |
num_records | integer <int32> |
object (DatabaseOptions) |
Responses
Request samples
- Payload
{- "id": "string",
- "first_name": "string",
- "last_name": "string",
- "num_records": 0,
- "options": {
- "page": 0,
- "page_size": 0
}
}
Response samples
- 200
{- "id": 0
}
Response samples
- 200
{- "status": "string",
- "msg": {
- "operators": [
- {
- "id": "string",
- "first_name": "string",
- "last_name": "string",
- "num_records": 0,
- "options": {
- "page": 0,
- "page_size": 0
}
}
]
}
}
Response samples
- 200
{- "status": "string",
- "msg": {
- "operator_metrics": [
- {
- "operator": {
- "id": "string",
- "first_name": "string",
- "last_name": "string",
- "num_records": 0,
- "options": {
- "page": 0,
- "page_size": 0
}
}, - "step": {
- "id": "string",
- "name": "string",
- "description": "string",
- "image_link": "string",
- "video_link": "string",
- "overlay_link": "string",
- "minimum_predict": 0,
- "benchmark": 0,
- "roi_zoom": "string",
- "camera_id": "string",
- "perspective_change": true,
- "assembly_id": {
- "uuid": "string"
}, - "next_step_id": "string",
- "previous_step_id": "string",
- "options": {
- "page": 0,
- "page_size": 0
}, - "step_data": [
- {
- "step_data_info": [
- {
- "id": "string",
- "label": "string",
- "link": "string",
- "value": "string",
- "step_data_id": "string",
- "type": "string",
- "name": "string",
- "options": {
- "page": null,
- "page_size": null
}
}
], - "id": "string",
- "step_id": "string",
- "data_type": "ml",
- "units": "string",
- "name": "string",
- "tolerance": 0,
- "options": {
- "page": 0,
- "page_size": 0
}, - "ocr_capture_variable_info": [
- {
- "variable_name": "string",
- "bounding_box": "string",
- "original_text_value": "string",
- "step_number": "string"
}
]
}
]
}, - "assembly_id": {
- "uuid": "string"
}, - "step_record": {
- "prediction": 0,
- "complete": true,
- "time_taken": 0,
- "metric_datetime": "string",
- "delta_from_benchmark": 0,
- "benchmark": 0
}, - "assembly_record": {
- "id": {
- "uuid": "string"
}, - "ref_assembly_id": {
- "uuid": "string"
}, - "operator": {
- "id": "string",
- "first_name": "string",
- "last_name": "string",
- "num_records": 0,
- "options": {
- "page": 0,
- "page_size": 0
}
}, - "benchmark": 0,
- "complete": true,
- "assembly_record_datetime": "string",
- "num_records": 0,
- "qa_report_link": "string",
- "options": {
- "page": 0,
- "page_size": 0
}
}, - "options": {
- "page": 0,
- "page_size": 0
}
}
], - "avg_time": 0,
- "avg_step_time": 0,
- "quality": 0
}
}
Get metrics on a previously coached assembly performed by a specific operator
path Parameters
operator_id required | string |
assembly_record_id required | string |
Responses
Response samples
- 200
{- "status": "string",
- "msg": {
- "operator_metrics": [
- {
- "operator": {
- "id": "string",
- "first_name": "string",
- "last_name": "string",
- "num_records": 0,
- "options": {
- "page": 0,
- "page_size": 0
}
}, - "step": {
- "id": "string",
- "name": "string",
- "description": "string",
- "image_link": "string",
- "video_link": "string",
- "overlay_link": "string",
- "minimum_predict": 0,
- "benchmark": 0,
- "roi_zoom": "string",
- "camera_id": "string",
- "perspective_change": true,
- "assembly_id": {
- "uuid": "string"
}, - "next_step_id": "string",
- "previous_step_id": "string",
- "options": {
- "page": 0,
- "page_size": 0
}, - "step_data": [
- {
- "step_data_info": [
- {
- "id": "string",
- "label": "string",
- "link": "string",
- "value": "string",
- "step_data_id": "string",
- "type": "string",
- "name": "string",
- "options": {
- "page": null,
- "page_size": null
}
}
], - "id": "string",
- "step_id": "string",
- "data_type": "ml",
- "units": "string",
- "name": "string",
- "tolerance": 0,
- "options": {
- "page": 0,
- "page_size": 0
}, - "ocr_capture_variable_info": [
- {
- "variable_name": "string",
- "bounding_box": "string",
- "original_text_value": "string",
- "step_number": "string"
}
]
}
]
}, - "assembly_id": {
- "uuid": "string"
}, - "step_record": {
- "prediction": 0,
- "complete": true,
- "time_taken": 0,
- "metric_datetime": "string",
- "delta_from_benchmark": 0,
- "benchmark": 0
}, - "assembly_record": {
- "id": {
- "uuid": "string"
}, - "ref_assembly_id": {
- "uuid": "string"
}, - "operator": {
- "id": "string",
- "first_name": "string",
- "last_name": "string",
- "num_records": 0,
- "options": {
- "page": 0,
- "page_size": 0
}
}, - "benchmark": 0,
- "complete": true,
- "assembly_record_datetime": "string",
- "num_records": 0,
- "qa_report_link": "string",
- "options": {
- "page": 0,
- "page_size": 0
}
}, - "options": {
- "page": 0,
- "page_size": 0
}
}
], - "avg_time": 0,
- "avg_step_time": 0,
- "quality": 0
}
}
Retrieve performance information of specific step, performed by a specific operator, of a previously coached assembly
path Parameters
operator_id required | string |
assembly_record_id required | string |
step_id required | string |
Responses
Response samples
- 200
- 404
{- "status": "string",
- "msg": {
- "operator_metrics": [
- {
- "operator": {
- "id": "string",
- "first_name": "string",
- "last_name": "string",
- "num_records": 0,
- "options": {
- "page": 0,
- "page_size": 0
}
}, - "step": {
- "id": "string",
- "name": "string",
- "description": "string",
- "image_link": "string",
- "video_link": "string",
- "overlay_link": "string",
- "minimum_predict": 0,
- "benchmark": 0,
- "roi_zoom": "string",
- "camera_id": "string",
- "perspective_change": true,
- "assembly_id": {
- "uuid": "string"
}, - "next_step_id": "string",
- "previous_step_id": "string",
- "options": {
- "page": 0,
- "page_size": 0
}, - "step_data": [
- {
- "step_data_info": [
- {
- "id": "string",
- "label": "string",
- "link": "string",
- "value": "string",
- "step_data_id": "string",
- "type": "string",
- "name": "string",
- "options": {
- "page": null,
- "page_size": null
}
}
], - "id": "string",
- "step_id": "string",
- "data_type": "ml",
- "units": "string",
- "name": "string",
- "tolerance": 0,
- "options": {
- "page": 0,
- "page_size": 0
}, - "ocr_capture_variable_info": [
- {
- "variable_name": "string",
- "bounding_box": "string",
- "original_text_value": "string",
- "step_number": "string"
}
]
}
]
}, - "assembly_id": {
- "uuid": "string"
}, - "step_record": {
- "prediction": 0,
- "complete": true,
- "time_taken": 0,
- "metric_datetime": "string",
- "delta_from_benchmark": 0,
- "benchmark": 0
}, - "assembly_record": {
- "id": {
- "uuid": "string"
}, - "ref_assembly_id": {
- "uuid": "string"
}, - "operator": {
- "id": "string",
- "first_name": "string",
- "last_name": "string",
- "num_records": 0,
- "options": {
- "page": 0,
- "page_size": 0
}
}, - "benchmark": 0,
- "complete": true,
- "assembly_record_datetime": "string",
- "num_records": 0,
- "qa_report_link": "string",
- "options": {
- "page": 0,
- "page_size": 0
}
}, - "options": {
- "page": 0,
- "page_size": 0
}
}
], - "avg_time": 0,
- "avg_step_time": 0,
- "quality": 0
}
}
Response samples
- 200
- 404
{- "status": "string",
- "msg": {
- "records": [
- {
- "id": {
- "uuid": "string"
}, - "ref_assembly_id": {
- "uuid": "string"
}, - "operator": {
- "id": "string",
- "first_name": "string",
- "last_name": "string",
- "num_records": 0,
- "options": {
- "page": 0,
- "page_size": 0
}
}, - "benchmark": 0,
- "complete": true,
- "assembly_record_datetime": "string",
- "num_records": 0,
- "qa_report_link": "string",
- "options": {
- "page": 0,
- "page_size": 0
}
}
]
}
}
Begin coaching on a specific assembly on a specific step
path Parameters
assembly_id required | string |
step_id required | string |
Responses
Response samples
- 200
- 400
{- "status": "string",
- "msg": {
- "records": [
- {
- "id": {
- "uuid": "string"
}, - "ref_assembly_id": {
- "uuid": "string"
}, - "operator": {
- "id": "string",
- "first_name": "string",
- "last_name": "string",
- "num_records": 0,
- "options": {
- "page": 0,
- "page_size": 0
}
}, - "benchmark": 0,
- "complete": true,
- "assembly_record_datetime": "string",
- "num_records": 0,
- "qa_report_link": "string",
- "options": {
- "page": 0,
- "page_size": 0
}
}
]
}
}
Pauses coaching of the assembly
path Parameters
assembly_id required | string Example: 57618016-cd00-4fc8-85f5-e4b26304c6ba The ID of the assembly |
Request Body schema: application/json
assembly_record_id | string |
Responses
Request samples
- Payload
{- "frequency": "WEEKLY",
- "recipients": [
- "jsmith@company.com",
- "habney@company.com"
]
}
Response samples
- 200
- 400
{- "status": "ok",
- "msg": ""
}
Complete coaching session
Declare that the ongoing coaching session is complete.
path Parameters
assembly_id required | string |
Request Body schema: application/json
step_index | integer <int32> |
assembly_record_id | string |
auto_coach_enabled | string |
Responses
Request samples
- Payload
{- "step_index": 0,
- "assembly_record_id": "string",
- "auto_coach_enabled": "string"
}
Response samples
- 200
{- "status": "ok",
- "msg": ""
}
Set coaching context to a new step
Set coaching to a specific assembly's step. Must provide an end-time for the current step and an assembly_record_id to report the endtime to.
path Parameters
assembly_id required | string |
step required | string |
Request Body schema: application/json
assembly_record_id | string |
end_time | string The end-time for the currently coached step |
auto_coach_enabled | boolean |
Responses
Request samples
- Payload
{- "assembly_record_id": "string",
- "end_time": "string",
- "auto_coach_enabled": true
}
Response samples
- 200
{- "status": "ok",
- "msg": ""
}
Adds a new camera to the database
Request Body schema: application/json
id | string |
name | string |
mfg | string |
serial_number | string |
object (DatabaseOptions) |
Responses
Request samples
- Payload
{- "id": "string",
- "name": "string",
- "mfg": "string",
- "serial_number": "string",
- "options": {
- "page": 0,
- "page_size": 0
}
}
Response samples
- 200
{- "status": "string",
- "msg": {
- "code": "string",
- "msg": "string",
- "count": 0,
- "target": "string"
}
}
Deletes camera from the database
Request Body schema: application/json
id | string |
name | string |
mfg | string |
serial_number | string |
object (DatabaseOptions) |
Responses
Request samples
- Payload
{- "id": "string",
- "name": "string",
- "mfg": "string",
- "serial_number": "string",
- "options": {
- "page": 0,
- "page_size": 0
}
}
Response samples
- 200
{- "status": "ok",
- "msg": ""
}
Gets an M-JPEG stream of the active camera
Gets an M-JPEG stream of the active camera. Make sure to start the camera pipeline first via POST /camera_stream
.
Request Body schema: application/json
id | string |
name | string |
mfg | string |
serial_number | string |
object (DatabaseOptions) |
Responses
Request samples
- Payload
{- "id": "string",
- "name": "string",
- "mfg": "string",
- "serial_number": "string",
- "options": {
- "page": 0,
- "page_size": 0
}
}
Response samples
- 200
{- "status": "string",
- "msg": {
- "resolution": "string",
- "resize_pipeline": "string",
- "resize_web": "string",
- "framerate": 0,
- "iso": 0,
- "rotation": 0,
- "zoom": "string",
- "ip": "string",
- "port": "string",
- "stream_path": "string",
- "pipeline_color_format": "string",
- "device_user_name": "string",
- "camera_type": "string",
- "device_serial_number": "string",
- "emulation": true,
- "user_set": "string",
- "Width": 0,
- "Height": 0,
- "OffsetX": 0,
- "OffsetY": 0,
- "ReverseX": 0,
- "ReverseY": 0,
- "PixelFormat": "string",
- "AcquisitionMode": "string",
- "ExposureAuto": "string",
- "ExposureMode": "string",
- "AcquisitionFrameRateAbs": 0,
- "AcquisitionFrameRate": 0,
- "PylonIgnoreCaps": 0,
- "DeviceUserID": "string",
- "ImageFilepath": "string",
- "CameraWidth": 0,
- "CameraHeight": 0,
- "CameraOffsetX": 0,
- "CameraOffsetY": 0,
- "MaxGain": 0,
- "MaxExposureTime": 0,
- "AutoReconnect": true,
- "WidthMax": 0,
- "HeightMax": 0,
- "test_config": {
- "test_dir": "string",
- "assembly_id": "string",
- "step_label": "string",
- "disable_crop": true
}
}
}
Update the configuration of a specific camera
Request Body schema: application/json
resolution | string |
resize_pipeline | string |
resize_web | string |
framerate | integer <int32> |
iso | integer <int32> |
rotation | integer <int32> |
zoom | string |
ip | string |
port | string |
stream_path | string |
pipeline_color_format | string |
device_user_name | string |
camera_type | string Possible values are: UNKNOWN BASLER_ACE BASLER_GIGE BASLER_AC2 BASLER_USB BASLER_EMULATOR RASPBERRY_PI |
device_serial_number | string |
emulation | boolean |
user_set | string |
Width | integer <int32> |
Height | integer <int32> |
OffsetX | integer <int32> |
OffsetY | integer <int32> |
ReverseX | integer <int32> |
ReverseY | integer <int32> |
PixelFormat | string |
AcquisitionMode | string |
ExposureAuto | string |
ExposureMode | string |
AcquisitionFrameRateAbs | integer <int32> |
AcquisitionFrameRate | integer <int32> |
PylonIgnoreCaps | integer <int32> |
DeviceUserID | string |
ImageFilepath | string |
CameraWidth | integer <int32> |
CameraHeight | integer <int32> |
CameraOffsetX | integer <int32> |
CameraOffsetY | integer <int32> |
MaxGain | number <float> |
MaxExposureTime | integer <int32> |
AutoReconnect | boolean |
WidthMax | integer <int32> |
HeightMax | integer <int32> |
object (CameraTestConfig) |
Responses
Request samples
- Payload
{- "resolution": "string",
- "resize_pipeline": "string",
- "resize_web": "string",
- "framerate": 0,
- "iso": 0,
- "rotation": 0,
- "zoom": "string",
- "ip": "string",
- "port": "string",
- "stream_path": "string",
- "pipeline_color_format": "string",
- "device_user_name": "string",
- "camera_type": "string",
- "device_serial_number": "string",
- "emulation": true,
- "user_set": "string",
- "Width": 0,
- "Height": 0,
- "OffsetX": 0,
- "OffsetY": 0,
- "ReverseX": 0,
- "ReverseY": 0,
- "PixelFormat": "string",
- "AcquisitionMode": "string",
- "ExposureAuto": "string",
- "ExposureMode": "string",
- "AcquisitionFrameRateAbs": 0,
- "AcquisitionFrameRate": 0,
- "PylonIgnoreCaps": 0,
- "DeviceUserID": "string",
- "ImageFilepath": "string",
- "CameraWidth": 0,
- "CameraHeight": 0,
- "CameraOffsetX": 0,
- "CameraOffsetY": 0,
- "MaxGain": 0,
- "MaxExposureTime": 0,
- "AutoReconnect": true,
- "WidthMax": 0,
- "HeightMax": 0,
- "test_config": {
- "test_dir": "string",
- "assembly_id": "string",
- "step_label": "string",
- "disable_crop": true
}
}
Response samples
- 200
{- "status": "string",
- "msg": {
- "roi_zoom": "string",
- "camera_name": "string"
}
}
Get all Basler device usernames
Some Camera endpoints require a "device_user_name", which is an identifier for a given Basler camera. This endpoint returns all configured basler device user names. Response is returned in a JSON serialized string. Sample response:
{
"status": "ok",
"msg": "[\"RAP_CAM_01\", \"RAP_CAM_02\"]"
}
Responses
Response samples
- 200
{- "status": "ok",
- "msg": ""
}
Triggers the Auto Adjust functionality of a specific camera
Request Body schema: application/json
device_user_name required | string A Basler device username |
Responses
Request samples
- Payload
{- "device_user_name": "string"
}
Response samples
- 200
{- "status": "ok",
- "msg": ""
}
Set the max gain of a specific camera
Request Body schema: application/json
device_user_name required | string A Basler device username |
max_gain | number <float> |
Responses
Request samples
- Payload
{- "device_user_name": "string",
- "max_gain": 0
}
Response samples
- 200
{- "status": "ok",
- "msg": ""
}
Set the max exposure time of a specific camera
Request Body schema: application/json
device_user_name | string |
max_exposure_time | integer <int32> Exposure time in microseconds |
Responses
Request samples
- Payload
{- "device_user_name": "string",
- "max_exposure_time": 0
}
Response samples
- 200
- 400
{- "status": "ok",
- "msg": ""
}
Get the health status of system components
Request Body schema: application/json
_compute_sensor_camera_basler | string Possible values are: UNKNOWN UP DOWN RESET |
_compute_sensor_mechanical_io | string Possible values are: UNKNOWN UP DOWN RESET |
_buslog_scheduler | string Possible values are: UNKNOWN UP DOWN RESET |
_store_filesys | string Possible values are: UNKNOWN UP DOWN RESET |
_store_database | string Possible values are: UNKNOWN UP DOWN RESET |
_compute_predict | string Possible values are: UNKNOWN UP DOWN RESET |
_compute_sequencer | string Possible values are: UNKNOWN UP DOWN RESET |
_compute_train.*? | string Possible values are: UNKNOWN UP DOWN RESET |
_compute_recorder | string Possible values are: UNKNOWN UP DOWN RESET |
_ui_webserver | string Possible values are: UNKNOWN UP DOWN RESET |
_buslog_reporting | string Possible values are: UNKNOWN UP DOWN RESET |
Request samples
- Payload
{- "_compute_sensor_camera_basler": "UP",
- "_compute_sensor_mechanical_io": "UP",
- "_buslog_scheduler": "UP",
- "_store_filesys": "UP",
- "_store_database": "UP",
- "_compute_predict": "UP",
- "_compute_sequencer": "UP",
- "_compute_train.*?": "UP",
- "_compute_recorder": "UP",
- "_ui_webserver": "UP",
- "_buslog_reporting": "UP"
}
Create a new model for a specific assembly
If not already done, this will change the global training context to this assembly.
path Parameters
assembly_id required | string |
Request Body schema: application/json
name | string |
description | string |
parent_id | string |
revision_id | string |
epochs | integer <int32> |
batch_size | integer <int32> |
complete_callback | string |
Responses
Request samples
- Payload
{- "name": "string",
- "description": "string",
- "parent_id": "string",
- "revision_id": "string",
- "epochs": 0,
- "batch_size": 0,
- "complete_callback": "string"
}
Response samples
- 200
- 400
{- "status": "ok",
- "msg": ""
}
Edit a model for a specific assembly
If not already done, this will change the global training context to this assembly
path Parameters
assembly_id required | string |
Request Body schema: application/json
complete_callback | string |
object (Assembly) |
Responses
Request samples
- Payload
{- "complete_callback": "string",
- "assembly": {
- "id": {
- "uuid": "string"
}, - "name": "string",
- "description": "string",
- "image_link": "string",
- "tenant_id": "string",
- "training_complete": true,
- "revision_id": {
- "uuid": "string"
}, - "parent_id": {
- "uuid": "string"
}, - "revision": 0,
- "steps": {
- "steps": [
- {
- "id": "string",
- "name": "string",
- "description": "string",
- "image_link": "string",
- "video_link": "string",
- "overlay_link": "string",
- "minimum_predict": 0,
- "benchmark": 0,
- "roi_zoom": "string",
- "camera_id": "string",
- "perspective_change": true,
- "assembly_id": {
- "uuid": "string"
}, - "next_step_id": "string",
- "previous_step_id": "string",
- "options": {
- "page": 0,
- "page_size": 0
}, - "step_data": [
- {
- "step_data_info": [
- {
- "id": "string",
- "label": "string",
- "link": "string",
- "value": "string",
- "step_data_id": "string",
- "type": "string",
- "name": "string",
- "options": {
- "page": null,
- "page_size": null
}
}
], - "id": "string",
- "step_id": "string",
- "data_type": "ml",
- "units": "string",
- "name": "string",
- "tolerance": 0,
- "options": {
- "page": 0,
- "page_size": 0
}, - "ocr_capture_variable_info": [
- {
- "variable_name": "string",
- "bounding_box": "string",
- "original_text_value": "string",
- "step_number": "string"
}
]
}
]
}
]
}, - "augmentation": {
- "id": "string",
- "assembly_id": {
- "uuid": "string"
}, - "lighting_aug": 0,
- "placement_aug": 0,
- "color_aug": 0
}, - "options": {
- "page": 0,
- "page_size": 0
}, - "classes": [
- "string"
], - "product_version": "string",
- "published": true,
- "approver": "string",
- "notes": "string",
- "record_videos": true
}
}
Response samples
- 200
- 400
{- "status": "ok",
- "msg": ""
}
Inform model of the start of a new step
If not already done, this will change the global training context to this assembly
path Parameters
assembly_id required | string |
Request Body schema: application/json
step_roi_zoom | string |
step_description | string |
step_camera_name | string |
step_minimum_predict | number <float> |
step_benchmark | number <float> |
step_index | integer <int32> |
label_index | integer <int32> |
Array of objects (StepDataInfo) | |
record_step | boolean |
Array of objects (OCRCaptureVariableInfo) | |
actions | string Possible values are: ML OCR_CHECK OCR_CAPTURE OCR_VERIFY TORQUE INPUT OUTPUT QA |
data_ops | string Possible values are: ADD DELETE INSERT UPDATE MOVE |
step_type | string Possible values are: MASTER CORRECT INCORRECT PERSPECTIVE IO |
Responses
Request samples
- Payload
{- "step_roi_zoom": "string",
- "step_description": "string",
- "step_camera_name": "string",
- "step_minimum_predict": 0,
- "step_benchmark": 0,
- "step_index": 0,
- "label_index": 0,
- "step_data_infos": [
- {
- "id": "string",
- "label": "string",
- "link": "string",
- "value": "string",
- "step_data_id": "string",
- "type": "string",
- "name": "string",
- "options": {
- "page": 0,
- "page_size": 0
}
}
], - "record_step": true,
- "ocr_capture_variable_infos": [
- {
- "variable_name": "string",
- "bounding_box": "string",
- "original_text_value": "string",
- "step_number": "string"
}
], - "actions": "ML",
- "data_ops": "UPDATE",
- "step_type": "MASTER"
}
Response samples
- 200
- 400
{- "status": "ok",
- "msg": ""
}
Capture an IO event for a specific assembly while recording a step
Between POST /model/start
and POST /model/end
of a Torque or IO action, declare when an IO event occurred.
path Parameters
assembly_id required | string |
Request Body schema: application/json
data_ops | string Possible values are: ADD DELETE INSERT UPDATE MOVE |
step_type | string Possible values are: MASTER CORRECT INCORRECT PERSPECTIVE IO |
io_name | string |
step_index | integer <int32> |
Responses
Request samples
- Payload
{- "data_ops": "UPDATE",
- "step_type": "MASTER",
- "io_name": "string",
- "step_index": 0
}
Response samples
- 200
- 400
{- "status": "ok",
- "msg": ""
}
Inform model of the end of a new step
Should be paired with POST /model/start/{assembly_id}
. If not already done, this will change the global training context to this assembly
path Parameters
assembly_id required | string |
Request Body schema: application/json
create_overlay | boolean |
overlay_rectangles | Array of strings |
step_index | integer <int32> |
label_index | integer <int32> |
record_step | boolean |
actions | string Possible values are: ML OCR_CHECK OCR_CAPTURE OCR_VERIFY TORQUE INPUT OUTPUT QA |
data_ops | string Possible values are: ADD DELETE INSERT UPDATE MOVE |
step_type | string Possible values are: MASTER CORRECT INCORRECT PERSPECTIVE IO |
Responses
Request samples
- Payload
{- "create_overlay": true,
- "overlay_rectangles": [
- "string"
], - "step_index": 0,
- "label_index": 0,
- "record_step": true,
- "actions": "ML",
- "data_ops": "UPDATE",
- "step_type": "MASTER"
}
Response samples
- 200
- 400
{- "status": "ok",
- "msg": ""
}
Revert the previous `start` call
If a POST /model/end
hasn't been called yet, you may revert the previous POST /model/start
call, deleting any data that was generated from said call. This allows you to essentially "undo" the previous operation.
Responses
Response samples
- 200
{- "status": "ok",
- "msg": ""
}
Move one step to another location
After changing the global training context to a specific assembly, this endpoint allows you to move a step from one position to another position without restriction.
path Parameters
current_index required | string |
new_index required | string |
Request Body schema: application/json
assembly_id | string |
Responses
Request samples
- Payload
{- "assembly_id": "string"
}
Response samples
- 200
{- "status": "ok",
- "msg": ""
}
Create an overlay for a step of a specific assembly
An overlay is made up of rectangles. These will be displayed to the operator during coaching of a specific step.
path Parameters
assembly_id required | string |
Request Body schema: application/json
overlay_rectangles | Array of strings |
step_index | integer <int32> |
Responses
Request samples
- Payload
{- "overlay_rectangles": [
- "(0.301, 0.225, 0.245, 0.44)"
], - "step_index": 0
}
Response samples
- 200
{- "status": "ok",
- "msg": ""
}
Initiate training of the model right now
path Parameters
assembly_id required | string |
Request Body schema: application/json
export | string |
lighting | string |
precision | string |
color | string |
Request samples
- Payload
{- "export": "string",
- "lighting": "string",
- "precision": "string",
- "color": "string"
}
Cancel an assembly currently in a training session
path Parameters
assembly_id required | string |
Request Body schema: application/json
cancel_current_training | boolean |
finalize_only | boolean |
Responses
Request samples
- Payload
{- "cancel_current_training": true,
- "finalize_only": true
}
Response samples
- 200
{- "status": "ok",
- "msg": ""
}
Get similarity scores of step's starting position with its potential ending positions
This endpoint returns multiple structural similarity index measures (SSIM) which represent how similar two images are. Each step is made up of multiple "end positions", or labels. This will return an SSIM comparing the STARTING position and each label. The closer to 0 the values are, the more similar they are.
Sample output:
{
"step_number": 1,
"ssim": {
# Values are populated dynamically based on the amount of labels this step has
"previous": 586.57,
"incorrect_1": 874.01,
"incorrect_2": 756.42,
...
}
}
path Parameters
assembly_id required | string |
step_number required | string |
Schedule training of a model some time later
Request Body schema: application/json
name | string |
description | string |
when | string |
assembly_id | string |
type | string The type of schedule request. Currently, the only valid value is "COMPUTE_TRAIN" |
complete_callback | string |
epochs | integer <int32> |
lighting | number <float> |
precision | number <float> |
color | number <float> |
Responses
Request samples
- Payload
{- "name": "string",
- "description": "string",
- "when": "string",
- "assembly_id": "string",
- "type": "string",
- "complete_callback": "string",
- "epochs": 0,
- "lighting": 0,
- "precision": 0,
- "color": 0
}
Response samples
- 200
{- "status": "ok",
- "msg": ""
}
Response samples
- 200
{- "status": "string",
- "msg": [
- {
- "id": "string",
- "name": "string",
- "description": "string",
- "action": {
- "when": "string",
- "function": "string",
- "edit_train_request": {
- "edit_request": {
- "step_roi_zoom": "string",
- "step_description": "string",
- "step_camera_name": "string",
- "step_minimum_predict": 0,
- "step_benchmark": 0,
- "export": "string",
- "complete_callback": "string",
- "init_task_num": 0,
- "prev_label": "string",
- "create_overlay": true,
- "overlay_rectangles": [
- "string"
], - "cancel_current_training": true,
- "skip_video_conversion": true,
- "step_index": 0,
- "label_index": 0,
- "assembly": {
- "id": {
- "uuid": "string"
}, - "name": "string",
- "description": "string",
- "image_link": "string",
- "tenant_id": "string",
- "training_complete": true,
- "revision_id": {
- "uuid": "string"
}, - "parent_id": {
- "uuid": "string"
}, - "revision": 0,
- "steps": {
- "steps": [
- {
- "id": null,
- "name": null,
- "description": null,
- "image_link": null,
- "video_link": null,
- "overlay_link": null,
- "minimum_predict": null,
- "benchmark": null,
- "roi_zoom": null,
- "camera_id": null,
- "perspective_change": null,
- "assembly_id": null,
- "next_step_id": null,
- "previous_step_id": null,
- "options": null,
- "step_data": [ ]
}
]
}, - "augmentation": {
- "id": "string",
- "assembly_id": {
- "uuid": "string"
}, - "lighting_aug": 0,
- "placement_aug": 0,
- "color_aug": 0
}, - "options": {
- "page": 0,
- "page_size": 0
}, - "classes": [
- "string"
], - "product_version": "string",
- "published": true,
- "approver": "string",
- "notes": "string",
- "record_videos": true
}, - "data_type": "string",
- "augmentation": {
- "id": "string",
- "assembly_id": {
- "uuid": "string"
}, - "lighting_aug": 0,
- "placement_aug": 0,
- "color_aug": 0
}, - "step_data_infos": [
- {
- "id": "string",
- "label": "string",
- "link": "string",
- "value": "string",
- "step_data_id": "string",
- "type": "string",
- "name": "string",
- "options": {
- "page": 0,
- "page_size": 0
}
}
], - "new_step_index": 0,
- "finalize_only": true,
- "assembly_revision": {
- "id": {
- "uuid": "string"
}, - "name": "string",
- "description": "string",
- "image_link": "string",
- "tenant_id": "string",
- "training_complete": true,
- "active_revision": "string",
- "published": true
}, - "record_step": true,
- "ocr_capture_variable_infos": [
- {
- "variable_name": "string",
- "bounding_box": "string",
- "original_text_value": "string",
- "step_number": "string"
}
], - "step_tolerance": 0,
- "revert": true,
- "actions": [
- "string"
], - "model": {
- "base_nn": {
- "type": "string",
- "product_type": "string",
- "version": "string",
- "python_version": "string",
- "tensorflow_version": "string",
- "model_name": "string",
- "model_type": "string",
- "model_category": "string"
}, - "timestamp": {
- "seconds": "string",
- "nanos": 0
}, - "configuration": {
- "duration": 0,
- "sample_size": 0,
- "image_height": 0,
- "image_width": 0,
- "image_channels": 0,
- "batch_size": 0,
- "validation_split": 0,
- "training_steps": 0,
- "epochs": 0
}
}, - "data_ops": "string",
- "step_type": "string",
- "port": {
- "port": "string",
- "name": "string",
- "type": "string",
- "timeout": 0,
- "chip": "string",
- "line": 0,
- "duration": 0,
- "input_type": "string",
- "output_type": "string"
}
}, - "train_request": {
- "step_roi_zoom": "string",
- "step_description": "string",
- "step_camera_name": "string",
- "step_minimum_predict": 0,
- "step_benchmark": 0,
- "export": "string",
- "complete_callback": "string",
- "init_task_num": 0,
- "prev_label": "string",
- "create_overlay": true,
- "overlay_rectangles": [
- "string"
], - "cancel_current_training": true,
- "skip_video_conversion": true,
- "step_index": 0,
- "label_index": 0,
- "assembly": {
- "id": {
- "uuid": "string"
}, - "name": "string",
- "description": "string",
- "image_link": "string",
- "tenant_id": "string",
- "training_complete": true,
- "revision_id": {
- "uuid": "string"
}, - "parent_id": {
- "uuid": "string"
}, - "revision": 0,
- "steps": {
- "steps": [
- {
- "id": null,
- "name": null,
- "description": null,
- "image_link": null,
- "video_link": null,
- "overlay_link": null,
- "minimum_predict": null,
- "benchmark": null,
- "roi_zoom": null,
- "camera_id": null,
- "perspective_change": null,
- "assembly_id": null,
- "next_step_id": null,
- "previous_step_id": null,
- "options": null,
- "step_data": [ ]
}
]
}, - "augmentation": {
- "id": "string",
- "assembly_id": {
- "uuid": "string"
}, - "lighting_aug": 0,
- "placement_aug": 0,
- "color_aug": 0
}, - "options": {
- "page": 0,
- "page_size": 0
}, - "classes": [
- "string"
], - "product_version": "string",
- "published": true,
- "approver": "string",
- "notes": "string",
- "record_videos": true
}, - "data_type": "string",
- "augmentation": {
- "id": "string",
- "assembly_id": {
- "uuid": "string"
}, - "lighting_aug": 0,
- "placement_aug": 0,
- "color_aug": 0
}, - "step_data_infos": [
- {
- "id": "string",
- "label": "string",
- "link": "string",
- "value": "string",
- "step_data_id": "string",
- "type": "string",
- "name": "string",
- "options": {
- "page": 0,
- "page_size": 0
}
}
], - "new_step_index": 0,
- "finalize_only": true,
- "assembly_revision": {
- "id": {
- "uuid": "string"
}, - "name": "string",
- "description": "string",
- "image_link": "string",
- "tenant_id": "string",
- "training_complete": true,
- "active_revision": "string",
- "published": true
}, - "record_step": true,
- "ocr_capture_variable_infos": [
- {
- "variable_name": "string",
- "bounding_box": "string",
- "original_text_value": "string",
- "step_number": "string"
}
], - "step_tolerance": 0,
- "revert": true,
- "actions": [
- "string"
], - "model": {
- "base_nn": {
- "type": "string",
- "product_type": "string",
- "version": "string",
- "python_version": "string",
- "tensorflow_version": "string",
- "model_name": "string",
- "model_type": "string",
- "model_category": "string"
}, - "timestamp": {
- "seconds": "string",
- "nanos": 0
}, - "configuration": {
- "duration": 0,
- "sample_size": 0,
- "image_height": 0,
- "image_width": 0,
- "image_channels": 0,
- "batch_size": 0,
- "validation_split": 0,
- "training_steps": 0,
- "epochs": 0
}
}, - "data_ops": "string",
- "step_type": "string",
- "port": {
- "port": "string",
- "name": "string",
- "type": "string",
- "timeout": 0,
- "chip": "string",
- "line": 0,
- "duration": 0,
- "input_type": "string",
- "output_type": "string"
}
}
}, - "complete_callback": "string"
}, - "service": "string",
- "status": {
- "code": "string",
- "msg": "string",
- "count": 0,
- "target": "string"
}
}
]
}
Gets all scheduled training sessions of a certain status
Possible status values are "queued" and "ended".
path Parameters
status required | string |
Responses
Response samples
- 200
{- "status": "string",
- "msg": [
- {
- "id": "string",
- "name": "string",
- "description": "string",
- "action": {
- "when": "string",
- "function": "string",
- "edit_train_request": {
- "edit_request": {
- "step_roi_zoom": "string",
- "step_description": "string",
- "step_camera_name": "string",
- "step_minimum_predict": 0,
- "step_benchmark": 0,
- "export": "string",
- "complete_callback": "string",
- "init_task_num": 0,
- "prev_label": "string",
- "create_overlay": true,
- "overlay_rectangles": [
- "string"
], - "cancel_current_training": true,
- "skip_video_conversion": true,
- "step_index": 0,
- "label_index": 0,
- "assembly": {
- "id": {
- "uuid": "string"
}, - "name": "string",
- "description": "string",
- "image_link": "string",
- "tenant_id": "string",
- "training_complete": true,
- "revision_id": {
- "uuid": "string"
}, - "parent_id": {
- "uuid": "string"
}, - "revision": 0,
- "steps": {
- "steps": [
- {
- "id": null,
- "name": null,
- "description": null,
- "image_link": null,
- "video_link": null,
- "overlay_link": null,
- "minimum_predict": null,
- "benchmark": null,
- "roi_zoom": null,
- "camera_id": null,
- "perspective_change": null,
- "assembly_id": null,
- "next_step_id": null,
- "previous_step_id": null,
- "options": null,
- "step_data": [ ]
}
]
}, - "augmentation": {
- "id": "string",
- "assembly_id": {
- "uuid": "string"
}, - "lighting_aug": 0,
- "placement_aug": 0,
- "color_aug": 0
}, - "options": {
- "page": 0,
- "page_size": 0
}, - "classes": [
- "string"
], - "product_version": "string",
- "published": true,
- "approver": "string",
- "notes": "string",
- "record_videos": true
}, - "data_type": "string",
- "augmentation": {
- "id": "string",
- "assembly_id": {
- "uuid": "string"
}, - "lighting_aug": 0,
- "placement_aug": 0,
- "color_aug": 0
}, - "step_data_infos": [
- {
- "id": "string",
- "label": "string",
- "link": "string",
- "value": "string",
- "step_data_id": "string",
- "type": "string",
- "name": "string",
- "options": {
- "page": 0,
- "page_size": 0
}
}
], - "new_step_index": 0,
- "finalize_only": true,
- "assembly_revision": {
- "id": {
- "uuid": "string"
}, - "name": "string",
- "description": "string",
- "image_link": "string",
- "tenant_id": "string",
- "training_complete": true,
- "active_revision": "string",
- "published": true
}, - "record_step": true,
- "ocr_capture_variable_infos": [
- {
- "variable_name": "string",
- "bounding_box": "string",
- "original_text_value": "string",
- "step_number": "string"
}
], - "step_tolerance": 0,
- "revert": true,
- "actions": [
- "string"
], - "model": {
- "base_nn": {
- "type": "string",
- "product_type": "string",
- "version": "string",
- "python_version": "string",
- "tensorflow_version": "string",
- "model_name": "string",
- "model_type": "string",
- "model_category": "string"
}, - "timestamp": {
- "seconds": "string",
- "nanos": 0
}, - "configuration": {
- "duration": 0,
- "sample_size": 0,
- "image_height": 0,
- "image_width": 0,
- "image_channels": 0,
- "batch_size": 0,
- "validation_split": 0,
- "training_steps": 0,
- "epochs": 0
}
}, - "data_ops": "string",
- "step_type": "string",
- "port": {
- "port": "string",
- "name": "string",
- "type": "string",
- "timeout": 0,
- "chip": "string",
- "line": 0,
- "duration": 0,
- "input_type": "string",
- "output_type": "string"
}
}, - "train_request": {
- "step_roi_zoom": "string",
- "step_description": "string",
- "step_camera_name": "string",
- "step_minimum_predict": 0,
- "step_benchmark": 0,
- "export": "string",
- "complete_callback": "string",
- "init_task_num": 0,
- "prev_label": "string",
- "create_overlay": true,
- "overlay_rectangles": [
- "string"
], - "cancel_current_training": true,
- "skip_video_conversion": true,
- "step_index": 0,
- "label_index": 0,
- "assembly": {
- "id": {
- "uuid": "string"
}, - "name": "string",
- "description": "string",
- "image_link": "string",
- "tenant_id": "string",
- "training_complete": true,
- "revision_id": {
- "uuid": "string"
}, - "parent_id": {
- "uuid": "string"
}, - "revision": 0,
- "steps": {
- "steps": [
- {
- "id": null,
- "name": null,
- "description": null,
- "image_link": null,
- "video_link": null,
- "overlay_link": null,
- "minimum_predict": null,
- "benchmark": null,
- "roi_zoom": null,
- "camera_id": null,
- "perspective_change": null,
- "assembly_id": null,
- "next_step_id": null,
- "previous_step_id": null,
- "options": null,
- "step_data": [ ]
}
]
}, - "augmentation": {
- "id": "string",
- "assembly_id": {
- "uuid": "string"
}, - "lighting_aug": 0,
- "placement_aug": 0,
- "color_aug": 0
}, - "options": {
- "page": 0,
- "page_size": 0
}, - "classes": [
- "string"
], - "product_version": "string",
- "published": true,
- "approver": "string",
- "notes": "string",
- "record_videos": true
}, - "data_type": "string",
- "augmentation": {
- "id": "string",
- "assembly_id": {
- "uuid": "string"
}, - "lighting_aug": 0,
- "placement_aug": 0,
- "color_aug": 0
}, - "step_data_infos": [
- {
- "id": "string",
- "label": "string",
- "link": "string",
- "value": "string",
- "step_data_id": "string",
- "type": "string",
- "name": "string",
- "options": {
- "page": 0,
- "page_size": 0
}
}
], - "new_step_index": 0,
- "finalize_only": true,
- "assembly_revision": {
- "id": {
- "uuid": "string"
}, - "name": "string",
- "description": "string",
- "image_link": "string",
- "tenant_id": "string",
- "training_complete": true,
- "active_revision": "string",
- "published": true
}, - "record_step": true,
- "ocr_capture_variable_infos": [
- {
- "variable_name": "string",
- "bounding_box": "string",
- "original_text_value": "string",
- "step_number": "string"
}
], - "step_tolerance": 0,
- "revert": true,
- "actions": [
- "string"
], - "model": {
- "base_nn": {
- "type": "string",
- "product_type": "string",
- "version": "string",
- "python_version": "string",
- "tensorflow_version": "string",
- "model_name": "string",
- "model_type": "string",
- "model_category": "string"
}, - "timestamp": {
- "seconds": "string",
- "nanos": 0
}, - "configuration": {
- "duration": 0,
- "sample_size": 0,
- "image_height": 0,
- "image_width": 0,
- "image_channels": 0,
- "batch_size": 0,
- "validation_split": 0,
- "training_steps": 0,
- "epochs": 0
}
}, - "data_ops": "string",
- "step_type": "string",
- "port": {
- "port": "string",
- "name": "string",
- "type": "string",
- "timeout": 0,
- "chip": "string",
- "line": 0,
- "duration": 0,
- "input_type": "string",
- "output_type": "string"
}
}
}, - "complete_callback": "string"
}, - "service": "string",
- "status": {
- "code": "string",
- "msg": "string",
- "count": 0,
- "target": "string"
}
}
]
}
Change how frequently a report is emailed, and who receives one
Request Body schema: application/json
frequency | string Values can be "DAILY", "WEEKLY", "MONTHLY" |
report_type | string Currently, the only valid value is "ASSEMBLY" |
recipients | Array of strings |
Responses
Request samples
- Payload
{- "frequency": "WEEKLY",
- "report_type": "string",
- "recipients": [
- "string"
]
}
Response samples
- 200
- 400
{- "status": "string",
- "msg": {
- "id": "string",
- "recipients": [
- "string"
], - "report_type": "string",
- "frequency": "string",
- "last_ran": "string"
}
}
Return all scheduled reports
Returns a list of all scheduled reports. Currently there is only ever one scheduled report which can be continuously overwritten by POST /scheduled-report
. This will change in the future.
Responses
Response samples
- 200
- 400
{- "status": "string",
- "msg": {
- "scheduled_reports": [
- {
- "id": "string",
- "recipients": [
- "string"
], - "report_type": "string",
- "frequency": "string",
- "last_ran": "string"
}
]
}
}
Update information about a specific scheduled report
path Parameters
scheduled_report_id required | integer Example: 1 The ID of the scheduled report |
Request Body schema: application/json
frequency | string Values can be "DAILY", "WEEKLY", "MONTHLY" |
recipients | Array of strings |
Responses
Request samples
- Payload
{- "frequency": "WEEKLY",
- "recipients": [
- "string"
]
}
Response samples
- 200
- 400
{- "status": "string",
- "msg": {
- "scheduled_reports": [
- {
- "id": "string",
- "recipients": [
- "string"
], - "report_type": "string",
- "frequency": "string",
- "last_ran": "string"
}
]
}
}