Validate the response payload of your custom model.
HTTP Request
The body of this request should include the body of your custom model's response.
POST https://api.alloy.co/custom-models/evaluations/<evaluation_token>/validate
curl -X "POST" https://api.alloy.co/custom-models/evaluations/<evaluation_token>/validate \
-u workflow_token:workflow_secret \
-H 'content-type:application/json' \
-d '{"modelSuccess": true, "modelScore": 1, "modelVersion": 1}'
HTTP Response
Example Successful Response
{
"message": "Request valid",
"status_code": 200
}
Example Validation Error Response
{
"status_code": 400,
"error": {
"minor_code": 4001,
"type": "Request validation failure",
"message": "Invalid request body",
"details": {
"message": "\"modelVersion\" must be a number",
"path": "modelVersion",
"type": "number.base",
"context": {
"key": "modelVersion"
}
},
"error_token": <uuid>
},
"timestamp": 1621457333102,
"evaluation_token": <evaluation_token>,
"entity_token": null,
"application_token": <application_token>,
"application_version_id": <version>
}