---
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, 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

---

[API](https://skmtc.net/pioneer/apis/brain-api.md) · [All operations](https://skmtc.net/pioneer/apis/brain-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pioneer/brain-api/versions/31dfe831e079/schema)
