Skip to main content
POST
/
models
/
{model_id}
/
retrain
Retrain Model
curl --request POST \
  --url https://api.woodwide.ai/models/{model_id}/retrain \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "dataset_version_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "dataset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'
{
  "model": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "version_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "version_number": 123
  },
  "job_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "status": "<string>",
  "woodwide_runtime_version": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.woodwide.ai/llms.txt

Use this file to discover all available pages before exploring further.

Reuses the same model configuration (type, label column, input columns) from the previous version. Provide exactly one of dataset_version_id or dataset_id. Returns a job_id for polling.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

model_id
string<uuid>
required

Body

application/json

Request to retrain an existing model with new data.

Provide exactly one of dataset_id or dataset_version_id. The model configuration (type, label column, etc.) is inherited from the previous version.

dataset_version_id
string<uuid>

Pin a specific dataset version for retraining.

dataset_id
string<uuid>

Dataset to retrain on (uses latest ready version).

Response

Successful Response

Response for training a model.

model
ModelVersionRef · object
required

Model version reference.

job_id
string<uuid>
required
status
string
required
woodwide_runtime_version
string
required