Adapt model
POST /adaptations
Request managed next-item adaptation. The base model must be an enabled adaptation source. A successful job returns a candidate model and evaluation summary; activation follows review. It does not replace the base deployment.
Use the variables supplied at onboarding.
curl --fail-with-body -X POST "$JEAN_BASE_URL/adaptations" \
-H "Authorization: Bearer $JEAN_API_KEY" \
-H "Idempotency-Key: YOUR_UNIQUE_REQUEST_KEY" \
-H "Content-Type: application/json" \
-d '{"base_model_id":"mdl_base_beta","dataset_id":"ds_catalog_v1","tokenizer_id":"tok_demo_v1","objective":"next_item"}'
Body
| Field | Type | Required | Notes |
|---|---|---|---|
base_model_id | string | yes | A model enabled as an adaptation source. |
dataset_id | string | yes | |
tokenizer_id | string | no | Required if adapting a Semantic ID model. |
objective | next_item | no | Default: "next_item". |
Response · 202
{
"id": "job_demo",
"kind": "adaptation",
"status": "queued",
"request_id": "req_demo"
}
Poll Get job with the returned id. Errors and retries · Complete schemas