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-12-19T17:48:39.762Z",
"created_at": "2024-12-19T17:48:39.762Z",
"error": "e",
"feedback": "accepted",
"id": "a741455e-8146-4c8e-9055-020852878488",
"metadata": {
"code": "6mVrHzrDDbNklPO",
"original_source_code": "uLvdsxae6B6QiN47QpUkSjDri3",
"source_ranges": [
{
"prompt": "7qQ6dyS499Mz6P",
"range": {
"end": {
"column": 20,
"line": 1
},
"start": {
"column": 9,
"line": 9
}
}
}
]
},
"model_version": "3sOWK8cEtgSyQhkPww1mEnJEi",
"output_file": "5kKT95klq51laa",
"prompt": "lBPhGlGdWz4JA4e2YcUBeM0e",
"started_at": "2024-12-19T17:48:39.762Z",
"status": "failed",
"type": "text_to_kcl_iteration",
"updated_at": "2024-12-19T17:48:39.762Z",
"user_id": "9edb23ba-3c29-4fdc-bc02-95218cdbb13b"
}