Finalise a job (kicks off deferred analysis)
Changed onTransition IN_PROGRESS -> ANALYSING and fire the analysis worker.
Pre-flight: every workflow step must have at least one captured result (PENDING / RUNNING / COMPLETED / ERRORED - slice 5 adds the "skipped is allowed" relaxation). The credit budget is checked but not yet debited - the worker charges per-step so a failing step refunds cleanly.
Returns immediately with status="analysing"; clients poll GET /{id} to see per-step transitions and the terminal completed / completed_with_errors state.
Re-run path: when the job is already in COMPLETED_WITH_ERRORS, the request reopens analysis for only the ERRORED steps (each is refunded and reset to PENDING) and re-enters the same worker. COMPLETED / ABANDONED / ANALYSING all return 409.
Request
- Base URLhttps://api.ai.vision.tiliter.com
- AuthAPI key in header X-API-Key
- TypeScripthttps://skmtc.dev/tiliter/apis/tiliter-vision-ai-public-api/docs/api/v2/jobs/:job_id/analyse/post.tsA function with typed inputs. Its response is checked against the schema.
Path parameters
Response
Successful Response
Example response
{
"steps": [
{
"name": "Overview shot",
"workflow_note": "Stand back and capture the whole subject in frame.",
"operator_reference_file_urls": [],
"agent_id": "object-detection-v1"
}
],
"extra_steps": [
{
"agent_id": "object-detection-v1"
}
]
}Changes
- info
added the optional property
to the response with the status
- info
- warning
added the new
barcodeenum value to the//response property for the response status - warning
added the new
barcodeenum value to the//response property for the response status - info
added the optional property
to the response with the status - info
added the optional property
//to the response with the status
- warning