---
title: "Link Session To Dataset"
method: POST
path: "/felix/synthesis-log/session/{session_id}/link"
tags: ["felix", "synthesis-log"]
---

# Link Session To Dataset

`POST /felix/synthesis-log/session/{session_id}/link`

Link all entries in a synthesis session to a dataset.

Called after a synthesized dataset is created so the history is
accessible from the dataset detail page.

Args:
    session_id: UUID of the synthesis session.
    request: Contains the dataset_id to link.
    auth: Authentication result.

Returns:
    Success indicator.

Raises:
    HTTPException: If the link operation fails.

## Path parameters

- `session_id` string, uuid, required

## Request body

- SynthesisLogLinkRequest — Request body for linking a synthesis session to a dataset.
  - `dataset_id` string, required — Dataset UUID to associate with every entry in the session

## Response `200`

Successful Response

- object

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-24** `1cffaad2a921` — 1 warning, 1 info
  - removed the optional property `detail` from the response with the `422` status
  - added the required property `error` to the response with the `422` status
- **2026-08-19** `b92f75fd3b61` — 1 breaking
  - for the `path` request parameter `session_id`, the format changed from no format to `uuid`

[Change history](https://skmtc.dev/pioneer/apis/brain-api/changes/felix/synthesis-log/session/:session_id/link/post.md)

---

[API](https://skmtc.dev/pioneer/apis/brain-api.md) · [All operations](https://skmtc.dev/pioneer/apis/brain-api/llms.txt) · [OpenAPI document](https://skmtc.dev/pioneer/apis/brain-api/revisions/1cffaad2a921?raw)
