---
title: "get a project tree form a sample list"
method: POST
path: "/data-providers/{dataProviderId}/projects/{projectId}/blocksFromSampleIds"
tags: ["Block"]
---

# get a project tree form a sample list

`POST /data-providers/{dataProviderId}/projects/{projectId}/blocksFromSampleIds`

## Path parameters

- `dataProviderId` string, required
- `projectId` string, required

## Request body

- object
  - `sampleIds` union[], required
    - union
      - string
      - integer
      - number
  - `analysis` Analysis — Data for the current analysis
    - `id` string, required — Unique ID generated for the analysis, it will be the same in this analysis requests
    - `start` boolean — True if this is the first request of the analysis
    - `end` boolean — True if this is the last request of the analysis

## Response `200`

Block tree with sample

## Other responses

- `404` — Project or one of the models not found

## Changes

- **2024-07-22** `3063ef5d8a81` — 1 info
  - api operation id `controller.data.get_data` removed and replaced with `debiaiServer.controller.data.get_data`
- **2024-07-19** `30f824d14afd` — 1 info
  - api operation id `debiaiServer.controller.data.get_data` removed and replaced with `controller.data.get_data`

[Change history](https://skmtc.dev/debiai/apis/debiai-backend-api/changes/data-providers/:dataProviderId/projects/:projectId/blocksFromSampleIds/post.md)

---

[API](https://skmtc.dev/debiai/apis/debiai-backend-api.md) · [All operations](https://skmtc.dev/debiai/apis/debiai-backend-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/debiai/debiai-backend-api/revisions/c53e3bf3be9b/schema)
