---
title: "Link a chat session to a functional test"
method: POST
path: "/admin/functional_tests/link"
tags: ["admin"]
---

# Link a chat session to a functional test

`POST /admin/functional_tests/link`

Links a chat session to a functional test with a specific sample name and initial results.

## Request body

- LinkChatToFunctionalTestRequest
  - `chat_session_id` string, uuid, required
  - `functional_test_id` string, uuid, required
  - `results` object, required
  - `sample_name` string, required

## Response `200`

Successfully linked chat to functional test

## Other responses

- `400` — Bad request
- `500` — Internal server error

---

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