---
title: "Set test outcome"
method: PUT
path: "/v2/testendpoint/verifications/{verificationId}"
tags: ["Identity Verification"]
---

# Set test outcome

`PUT /v2/testendpoint/verifications/{verificationId}`

Use this endpoint to set an outcome (status code) when an Identity Verification case reaches a specific status for testing. <br /><br /><img src="https://files.readme.io/310d4d3-Inline_Caution.svg" align="left" alt="Important" /> **Important:** Before you start using this endpoint, first read the <a href="https://docs.fourthline.com/docs/idv-integration#set-test-outcome">integration guide</a>. <br />It contains detailed information about using this endpoint successfully and its limitations. <br /><br /><img src="https://files.readme.io/8eb9022-Inline_Tip.svg" align="left" alt="Tip" /> **Tip:** To view example request bodies, in the sandbox header, click: <img src="https://files.readme.io/8c205b5-APIExamplesDropdown.PNG"/>

## Path parameters

- `verificationId` string, required

## Headers

- `Authorization` string, required — The `access_token` returned in your most recent [Create access token](https://docs.fourthline.com/reference/create-access-token) response.

## Request body

- object
  - `expectations` object, required — Information about the outcome you want to set for the case when it reaches a specific status.
    - `<status>` object — Name this object the [case status](https://docs.fourthline.com/docs/idv-statuses) at which you want to apply the outcome. <br />Options: <br />• `completed` <br />• `inconsistent_data` <br />• `pending`
      - `responseDetails` object[] — The outcome to apply to the case when it reaches the specified status.
        - `statusCode` integer — The [status code](https://docs.fourthline.com/docs/idv-statuses#status-codes) that applies the outcome when the case reaches the specified status. <br />For supported status codes per outcome, see the [integration guide](https://docs.fourthline.com/docs/idv-integration#supported-outcomes).

## Response `200`

Test outcome set

- string — The response returns the string `Processed`.

## Other responses

- `400` — Invalid request parameters
- `403` — Access forbidden
- `404` — Verification case not found

---

[API](https://skmtc.net/fourthline/apis/fourthline-apis.md) · [All operations](https://skmtc.net/fourthline/apis/fourthline-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/fourthline/fourthline-apis/versions/7991ae7c8383/schema)
