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

## Changes

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

[Change history](https://skmtc.dev/debiai/apis/debiai-backend-api/changes/data-providers/:dataProviderId/projects/:projectId/blocks/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)
