---
title: "add a tree to an existing project block tree"
method: POST
path: "/data-providers/{dataProviderId}/projects/{projectId}/blocks"
tags: ["Block"]
---

# add a tree to an existing project block tree

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

## Path parameters

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

## Request body

- object
  - `blockTree` Block[], required
    - `gdtList` object[] — list of ground thruth (key - value)
    - `inputList` object[] — list of inputs (key - value)
    - `contextList` object[] — list of context (key - value)
    - `name` string, required

## Response `200`

Block tree added

## Other responses

- `403` — Invalid parameters
- `404` — Project 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)
