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-06T17:02:23.895Z",
"created_at": "2024-12-06T17:02:23.896Z",
"error": "vcvGhZKZuHABr",
"feedback": "rejected",
"id": "0be30702-9f22-44fa-b0f7-7349262101af",
"metadata": {
"code": "qhDOJEu",
"original_source_code": "QwvVHGDPFZ6dinotQtl12m9a",
"source_ranges": [
{
"prompt": "e",
"range": {
"end": {
"column": 14,
"line": 9
},
"start": {
"column": 29,
"line": 17
}
}
}
]
},
"model_version": "zYuTDTsSBGqJ7lrPfpbE44S0oO",
"output_file": "v",
"prompt": "hDkfRKSowCziTJLnsNfX27DON6r",
"started_at": "2024-12-06T17:02:23.896Z",
"status": "completed",
"type": "text_to_kcl_iteration",
"updated_at": "2024-12-06T17:02:23.896Z",
"user_id": "5a009df6-3de5-4856-a3f5-39834e242413"
}