Report completion of a model job. Fires inference_complete event subscriptions on successful inference jobs.
const url = 'https://test-pie.streamline.enterprises/v2/models/example-model/versions/1/jobs/123456789012/complete';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"status":"success","output":{},"error":{}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://test-pie.streamline.enterprises/v2/models/example-model/versions/1/jobs/123456789012/complete \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "status": "success", "output": {}, "error": {} }'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Example
example-modelExample
1Example
123456789012Request Body required
Section titled “Request Body required ”object
Output metadata from the completed job (e.g. S3 paths). Passed as trigger_output to downstream event subscriptions.
object
Structured failure details from the handler. Stored on the durable job when status is failure.
object
Responses
Section titled “ Responses ”Job completed; all triggered subscriptions (if any) dispatched cleanly.
object
Durable model job identifier.
Model registry identifier.
Model version string within the registry.
Event subscriptions triggered by this job completion. Empty for failures or non-inference jobs.
object
Present when the target action was successfully triggered
Present when the target action failed to trigger
Example generated
{ "job_id": "example", "model_id": "example", "model_version": "example", "status": "example", "triggered_events": [ { "subscription_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "job_id": "example", "error": "example" } ]}Job completed, but one or more cascade subscriptions failed. Inspect triggered_events[*].error for per-subscription detail.
object
Durable model job identifier.
Model registry identifier.
Model version string within the registry.
Event subscriptions triggered by this job completion. Empty for failures or non-inference jobs.
object
Present when the target action was successfully triggered
Present when the target action failed to trigger
Example generated
{ "job_id": "example", "model_id": "example", "model_version": "example", "status": "example", "triggered_events": [ { "subscription_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "job_id": "example", "error": "example" } ]}Validation error — malformed input, invalid path parameters, or request that fails syntactic validation.
object
Human-readable error message
Example
{ "success": false}Missing or invalid Authorization bearer token, expired token, or token rejected by the
authorization layer (e.g. API Gateway JWT authorizer or application validation).
object
Human-readable error message
Example
{ "success": false}Authenticated caller lacks the permission required for this operation.
object
Human-readable error message
Example
{ "success": false}Requested resource was not found.
object
Human-readable error message
Example
{ "success": false}