API → ML → Get a ML prompthidden
hidden
Parameters
Name
Type
Req.
Returns
- 200 OK
successful operation
Name
Type
Req.
body
objectoptionalObject Properties
Possible values
thumbs_up
: Thumbs up.thumbs_down
: Thumbs down.accepted
: Accepted.rejected
: Rejected.
metadata
objectoptionalObject Properties
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.
Possible values
text_to_cad
: Text to CAD.text_to_kcl
: Text to KCL.text_to_kcl_iteration
: Text to Kcl iteration,
get
/ml-prompts/{id}$ curl "https://api.zoo.dev/ml-prompts/{id}" \
--header "Authorization: Bearer $TOKEN"
200 OK
Response{
"completed_at": "2024-09-18T17:46:46.032Z",
"created_at": "2024-09-18T17:46:46.032Z",
"error": "bTFyk1UAJbXj",
"feedback": "accepted",
"id": "18d9b580-dba2-44b6-b497-a1d3f89e1196",
"metadata": {
"code": "yD5KaHq7rSRIq78rOxECqcx1XZBml",
"original_source_code": "yKqh0TWs",
"source_ranges": [
{
"prompt": "hwcEZoitONuFDnH9Bo",
"range": {
"end": {
"column": 26,
"line": 29
},
"start": {
"column": 9,
"line": 21
}
}
}
]
},
"model_version": "ea2IuXhTuZCi",
"output_file": "BJ76a7K6M6lZADUfV",
"prompt": "Cpr2t5p6JCGZ3SKqngz",
"started_at": "2024-09-18T17:46:46.033Z",
"status": "uploaded",
"type": "text_to_cad",
"updated_at": "2024-09-18T17:46:46.033Z",
"user_id": "c57d9335-afae-41ee-a17f-11b0655d59de"
}