---
title: "Add a media path to a library."
method: POST
path: "/Library/VirtualFolders/Paths"
tags: ["LibraryStructure"]
---

# Add a media path to a library.

`POST /Library/VirtualFolders/Paths`

## Query parameters

- `refreshLibrary` boolean — Whether to refresh the library.

## Request body

- MediaPathDto — Media Path dto.
  - `Name` string, required — Gets or sets the name of the library.
  - `Path` string, nullable — Gets or sets the path to add.
  - `PathInfo` MediaPathInfo
    - `Path` string, nullable
    - `NetworkPath` string, nullable

## Response `204`

Media path added.

## Other responses

- `401` — Unauthorized
- `403` — Forbidden

---

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