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

# get a project tree form a sample list

`POST /json_block/projects/{projectId}/blocksFromSampleIds`

## Path parameters

- `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.dev/debiai/apis/debiai-dataprovider-backend-api.md) · [All operations](https://skmtc.dev/debiai/apis/debiai-dataprovider-backend-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/debiai/debiai-dataprovider-backend-api/revisions/cc4807410cb3/schema)
