---
title: "Get folder in directory version"
method: GET
path: "/ehr/{ehr_id}/directory/{version_uid}"
tags: ["DIRECTORY"]
---

# Get folder in directory version

`GET /ehr/{ehr_id}/directory/{version_uid}`

Retrieves a particular version of the directory FOLDER identified by `version_uid` and associated with the EHR identified by `ehr_id`.

If `path` is supplied, retrieves from the directory only the sub-FOLDER that is associated with that path.

## Path parameters

- `ehr_id` string, uuid, required
- `version_uid` string, required

## Query parameters

- `path` string

## Headers

- `Accept` 'application/json' | 'application/xml' | 'application/openehr.wt.flat+json' | 'application/openehr.wt.structured+json'

## Response `200`

`200 OK` is returned when the FOLDER is successfully retrieved.

- Folder
  - `_type` string

## Other responses

- `404` — `404 Not Found` is returned when an EHR with `ehr_id` does not exist, or when a directory with `version_uid` does not exist, or when `path` does not exist within the directory.

---

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