Evaluations
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
POST | |
GET | |
PATCH | |
DELETE | |
POST |
List all evaluations
Required API key scopes
evaluation:readPath parameters
- project_idstring
Query parameters
- enabledboolean
- id__inarray
- limitinteger
- offsetinteger
- order_byarray
- searchstring
Response
Example request
GET /api /environments /:project_id /evaluationsExample response
Status 200
RESPONSE
Create evaluations
Required API key scopes
evaluation:writePath parameters
- project_idstring
Request parameters
- namestring
- descriptionstring
- enabledboolean
- evaluation_type
- evaluation_config
- output_type
- output_config
- conditions
- model_configuration
- deletedboolean
Response
Example request
POST /api /environments /:project_id /evaluationsExample response
Status 201
RESPONSE
Retrieve evaluations
Required API key scopes
evaluation:readPath parameters
- idstring
- project_idstring
Response
Example request
GET /api /environments /:project_id /evaluations /:idExample response
Status 200
RESPONSE
Update evaluations
Required API key scopes
evaluation:writePath parameters
- idstring
- project_idstring
Request parameters
- namestring
- descriptionstring
- enabledboolean
- evaluation_type
- evaluation_config
- output_type
- output_config
- conditions
- model_configuration
- deletedboolean
Response
Example request
PATCH /api /environments /:project_id /evaluations /:idExample response
Status 200
RESPONSE
Delete evaluations
Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
Required API key scopes
evaluation:writePath parameters
- idstring
- project_idstring
Example request
DELETE /api /environments /:project_id /evaluations /:idExample response
Status 405 No response body
Create evaluations test hog
Test Hog evaluation code against sample events without saving.
Required API key scopes
evaluation:readPath parameters
- project_idstring
Request parameters
- namestring
- descriptionstring
- enabledboolean
- evaluation_type
- evaluation_config
- output_type
- output_config
- conditions
- model_configuration
- deletedboolean
Response
Example request
POST /api /environments /:project_id /evaluations /test_hogExample response
Status 200
RESPONSE