---
title: "For each root, checks if there are any supported files at root to warn the user during library creation about an invalid setup"
method: POST
path: "/api/Library/has-files-at-root"
tags: ["Library"]
---

# For each root, checks if there are any supported files at root to warn the user during library creation about an invalid setup

`POST /api/Library/has-files-at-root`

## Request

- Base URL: `http://localhost:5000`
- URL: `http://localhost:5000/api/Library/has-files-at-root`
- Auth: API key in header `x-api-key`

## Request body

- CheckForFilesInFolderRootsDto
  - `roots` string[], nullable

## Response `200`

OK

- string[]

## Changes

- **2025-11-01** `6cabddef7e29`: 3 breaking
  - the response's body type changed from `object` to `array` for status `200` (media type: text/plain)
  - the response's body type changed from `object` to `array` for status `200` (media type: application/json)
  - the response's body type changed from `object` to `array` for status `200` (media type: text/json)
- **2025-07-24** `c85cc9135b21`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/kareadita/apis/kavita/changes/api/Library/has-files-at-root/post.md)

---

[API](https://skmtc.dev/kareadita/apis/kavita.md) - [All operations](https://skmtc.dev/kareadita/apis/kavita/llms.txt) - [OpenAPI document](https://skmtc.dev/kareadita/apis/kavita/revisions/d266465eeb67?raw)
