Run a job on a service model assignment
const url = 'https://staging-pie.streamline.enterprises/v2/clients/client-1/domains/south_australia/service/service-1/assignments/default/jobs';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"job_type":"inference","input":{},"subscribe":false}'};
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://staging-pie.streamline.enterprises/v2/clients/client-1/domains/south_australia/service/service-1/assignments/default/jobs \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "job_type": "inference", "input": {}, "subscribe": false }'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Example
client-1Example
south_australiaExample
service-1Example
defaultRequest Body required
Section titled “Request Body required ”object
Payload forwarded to the assigned model handler.
object
When true for inference, stores this input as a model event subscription for future retraining.
Responses
Section titled “ Responses ”Assignment job started
object
Example
{ "job_id": "123456789012"}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}Semantically invalid request — e.g. domain not active, no model assigned, feature contract mismatch, or invalid feature definitions.
object
Human-readable error message
Example
{ "success": false}