---
title: "add a new expected results structure"
method: POST
path: "/data-providers/{dataProviderId}/projects/{projectId}/resultsStructure"
tags: ["Project"]
---

# add a new expected results structure

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

## Path parameters

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

## Request body

- object[]
  - `name` union, required
    - number
    - string
  - `type` string, required — text, number or bool
  - `default` union
    - number
    - string
    - boolean
  - `group` string — Optional group name, used to group the results columns in the UI

## Response `200`

Results structure added, the resultStructure is returned

## Other responses

- `403` — The result structure already exist
- `404` — The project does not exist

## Changes

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

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