---
title: "add a selection"
method: POST
path: "/json_block/projects/{projectId}/selections/"
tags: ["Selection"]
---

# add a selection

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

## Path parameters

- `projectId` string, required

## Request body

- object
  - `sampleHashList` string[], required — List of the selection sample id (hash)
  - `selectionName` string, required

## Response `200`

selection added, return the selection

---

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