---
title: "Get all samples of a patient in a study"
method: GET
path: "/studies/{studyId}/patients/{patientId}/samples"
tags: ["Samples"]
---

# Get all samples of a patient in a study

`GET /studies/{studyId}/patients/{patientId}/samples`

## Path parameters

- `patientId` string, required
- `studyId` string, required

## Query parameters

- `direction` 'ASC' | 'DESC'
- `pageNumber` integer
- `pageSize` integer
- `projection` 'DETAILED' | 'ID' | 'META' | 'SUMMARY'
- `sortBy` 'sampleId' | 'sampleType'

## Response `200`

OK

- Sample[]
  - `copyNumberSegmentPresent` boolean
  - `patientId` string, required
  - `sampleId` string, required
  - `sampleType` 'BLOOD_NORMAL' | 'METASTATIC' | 'PRIMARY_BLOOD_TUMOR' | 'PRIMARY_SOLID_TUMOR' | 'RECURRENT_BLOOD_TUMOR' | 'RECURRENT_SOLID_TUMOR' | 'SOLID_NORMAL'
  - `sequenced` boolean
  - `studyId` string, required
  - `uniquePatientKey` string
  - `uniqueSampleKey` string

---

[API](https://skmtc.net/waldronlab/apis/cbioportal-web-public-api-beta.md) · [All operations](https://skmtc.net/waldronlab/apis/cbioportal-web-public-api-beta/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/waldronlab/cbioportal-web-public-api-beta/revisions/99265965e66b/schema)
