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

---

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