API → MLIterate on a multi-file CAD model with a prompt
Parameters
Name
Type
Req.
bodymultipart/form-data
objectoptionalObject Properties
Returns
- 201 Created
successful creation
Name
Type
Req.
body
objectoptionalObject Properties
Possible values
thumbs_up
: Thumbs up.thumbs_down
: Thumbs down.accepted
: Accepted.rejected
: Rejected.
Possible values
cad
: CAD.kcl
: KCL.kcl_iteration
: KCL iteration.
Possible values
queued
: The async API call is queued.uploaded
: The async API call was uploaded to be converted.in_progress
: The async API call is in progress.completed
: The async API call has completed.failed
: The async API call has failed.
post
/ml/text-to-cad/multi-file/iteration$ curl -X POST "https://api.zoo.dev/ml/text-to-cad/multi-file/iteration" \
--header "Authorization: Bearer $TOKEN" \
--header "Content-Type: multipart/form-data" \
--data '{
"conversation_id": "b59985e7-bf7f-4623-b9b7-08b46ff6ff08",
"kcl_version": "3tbwu7djzKb4WG0zmS63QTKDIJz",
"project_name": "AmuWmyeU",
"prompt": "",
"source_ranges": [
{
"file": "1CfsSy5oeVOZHR7R7TD",
"prompt": "nWlZUCQjQS9jMmzEPs",
"range": {
"end": {
"column": 18,
"line": 5
},
"start": {
"column": 24,
"line": 25
}
}
}
]
}'
201 Created
Response{
"completed_at": "2025-07-31T17:19:22.393Z",
"conversation_id": "e403a6f6-c175-4136-b076-c6d2311f189c",
"created_at": "2025-07-31T17:19:22.393Z",
"error": "b",
"feedback": "thumbs_down",
"id": "1b900a3a-33e9-45fe-b7cf-d261459f104d",
"kcl_version": "py9nzC7DJXpzAUoXD",
"model": "kcl",
"model_version": "v2P6l8",
"outputs": {},
"project_name": "MNtH6xW6Syccd15DQnSUhak",
"prompt": "9AIrLt3P2wBN",
"source_ranges": [
{
"file": "2kdCF8uiK9c0A7bqeHYYRJqP2JxHJ",
"prompt": "39i5DhcgOl3GKaRBosKwLlOfG",
"range": {
"end": {
"column": 1,
"line": 20
},
"start": {
"column": 23,
"line": 25
}
}
}
],
"started_at": "2025-07-31T17:19:22.393Z",
"status": "uploaded",
"updated_at": "2025-07-31T17:19:22.393Z",
"user_id": "d1feba95-0d7c-4ee1-b7c4-0c43a83da1d8"
}