API → ML → Iterate on a multi-file CAD model with a promptbeta
beta
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 '{
"kcl_version": "ue26WzMPwsfQVGUJf",
"project_name": "pP27wLJ8sjtfXbGIYH3NVoSg",
"source_ranges": [
{
"file": "llKjczDH4FTIZWw2uGNHC7vof",
"prompt": "VmZF00BtHpLGLsF",
"range": {
"end": {
"column": 4,
"line": 24
},
"start": {
"column": 21,
"line": 27
}
}
}
]
}'
201 Created
Response{
"completed_at": "2025-02-21T16:37:08.499Z",
"created_at": "2025-02-21T16:37:08.499Z",
"error": "1QStb8TYoSgbN5CfnNkjtJQGDz",
"feedback": "thumbs_up",
"id": "53397909-10f2-46ac-84a2-7ef196e1ae47",
"model": "kcl_iteration",
"model_version": "SRfiDZSFnthEQ0ictGBOTZ8",
"outputs": {},
"source_ranges": [
{
"file": "y7KXl8e7jWcLD2zBeXJ32NFey",
"prompt": "k5lwpx8an75Jqh4CgfOgc65q",
"range": {
"end": {
"column": 25,
"line": 32
},
"start": {
"column": 7,
"line": 5
}
}
}
],
"started_at": "2025-02-21T16:37:08.499Z",
"status": "failed",
"updated_at": "2025-02-21T16:37:08.499Z",
"user_id": "5c2d825f-ea17-4271-b42b-567adea9b4be"
}