Transformations
Queue Evaluation for Multiple Transformations
Queues evaluation jobs for multiple transformations. The evaluations are processed asynchronously by worker jobs. This endpoint returns immediately with a 202 status to indicate the evaluations have been queued. The actual evaluation results are stored in the database and can be retrieved via the transformations list endpoint. Invalid transformation IDs will be included in the errors map in the response.
Authorization
API Key x-api-key<token>
Authenticate using API Key in request header
In: header
Request Body
application/json
transformationIDs*array<string>
Array of transformation IDs to evaluate
Items
1 <= items <= 100evaluationVersion?string
Evaluation version to use. Defaults to "0.1.0-gemini" if not specified.
Default
"0.1.0-gemini"Value in
"0.1.0-gemini"Response Body
application/json
application/json
application/json
curl -X POST "https://api.bem.ai/v1-beta/transformations/eval" \ -H "Content-Type: application/json" \ -d '{ "transformationIDs": [ "tr_2bxoJPNdSD4LgRT4YVC4gt72hlI", "tr_3cxpKQOeTE5MhSU5ZWD5hu83imJ", "tr_invalid" ], "evaluationVersion": "0.1.0-gemini" }'{
"queued": 2,
"skipped": 0
}{
"message": "invalid request body: missing required field 'transformationIDs'",
"code": 400,
"details": {
"field": "transformationIDs",
"reason": "required field missing"
}
}{
"message": "invalid request body: missing required field 'transformationIDs'",
"code": 400,
"details": {
"field": "transformationIDs",
"reason": "required field missing"
}
}