---
title: "Adds a sample to a participant."
method: POST
path: "/participant/{participantId}/sample"
tags: ["Participant"]
---

# Adds a sample to a participant.

`POST /participant/{participantId}/sample`

## Path parameters

- `participantId` string, required

## Request body

- CreateSampleEndpointInput
  - `identifier` string, required — The identifier used to correlate samples of different participants.
  - `asset` union, required
    - object
      - `_t` 'ExistingAssetInput', required
      - `name` string, required
      - `metadata` object, nullable
      - `identifier` string, nullable
    - object
      - `_t` 'MultiAssetInput', required
      - `assets` IAssetInput[], required
      - `metadata` object, nullable
      - `identifier` string, nullable
    - object
      - `_t` 'TextAssetInput', required
      - `text` string, required
      - `metadata` object, nullable
      - `identifier` string, nullable

## Response `200`

OK

- CreateSampleEndpointOutput
  - `id` string, required — The id of the created sample.

## Other responses

- `400` — Bad Request
- `401` — Unauthenticated
- `403` — Forbidden

---

[API](https://skmtc.net/rapidata/apis/rapidata-api.md) · [All operations](https://skmtc.net/rapidata/apis/rapidata-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/rapidata/rapidata-api/versions/e42ec51c7b88/schema)
