---
title: "Test an evaluation configuration."
method: POST
path: "/integration-invocations/{invocationId}/run-test-evaluation"
tags: ["integration-invocations"]
---

# Test an evaluation configuration.

`POST /integration-invocations/{invocationId}/run-test-evaluation`

Requires the privilege [`INTEGRATIONS_WRITE`](https://www.gremlin.com/docs/user-management/access-control/#privileges)

## Path parameters

- `invocationId` string, required

## Query parameters

- `teamId` string, required

## Request body

- TestPrivateNetworkEvaluationConfigurationRequest
  - `evaluationConfiguration` EvaluationConfiguration, required — The configuration for evaluating the success/failure of a status check
    - `okLatencyMaxMs` integer — The maximum latency in milliseconds for a successful status check
    - `okStatusCodes` string[], required — The list of successful response status codes for a successful status check
    - `responseBodyEvaluation` ResponseBodyEvaluation — The configuration for evaluating the success of a response body
      - `op` 'AND' | 'OR', required — The operation to logically combine predicates into a success or failure
      - `predicates` PredicateObject[], required — The list of predicates to evaluate against the status check response body
        - `comparator` HasCompareFunctionObject
        - `type` 'String' | 'Number' | 'Boolean', required — The type of primitive this predicate operates on
        - `jpQuery` string, required — The json path query to run to read from the response body
        - `rValue` object, required — The right hand value of the predicate

## Response `200`

Success

## Other responses

- `204` — No Content
- `400` — Bad Request
- `401` — Authorization header missing or malformed. Please provide proper credentials in the authorization header.
- `403` — User requires privilege for target team: INTEGRATIONS_WRITE
- `404` — Not found
- `500` — Internal error

---

[API](https://skmtc.net/gremlin/apis/gremlin-api.md) · [All operations](https://skmtc.net/gremlin/apis/gremlin-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gremlin/gremlin-api/revisions/36ee938323f0/schema)
