Train model version by id and version
POST
/v2/models/{model_id}/versions/{model_version}/train
const url = 'https://staging-pie.streamline.enterprises/v2/models/model_price_reco_v1/versions/1/train';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{}'};
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/models/model_price_reco_v1/versions/1/train \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{}'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” model_id
required
string
Example
model_price_reco_v1 model_version
required
string
Example
1Request Body required
Section titled “Request Body required ” Media type application/json
object
Example generated
{}Responses
Section titled “ Responses ”Training has been started
Media type application/json
object
job_id
required
Durable model job id.
string
Example
{ "job_id": "123456789012"}Validation error — malformed input, invalid path parameters, or request that fails syntactic validation.
Media type application/json
object
success
required
boolean
message
required
Human-readable error message
string
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).
Media type application/json
object
success
required
boolean
message
required
Human-readable error message
string
Example
{ "success": false}Authenticated caller lacks the permission required for this operation.
Media type application/json
object
success
required
boolean
message
required
Human-readable error message
string
Example
{ "success": false}Requested resource was not found.
Media type application/json
object
success
required
boolean
message
required
Human-readable error message
string
Example
{ "success": false}Semantically invalid request — e.g. domain not active, no model assigned, feature contract mismatch, or invalid feature definitions.
Media type application/json
object
success
required
boolean
message
required
Human-readable error message
string
Example
{ "success": false}