---
title: "Find subfolders by path"
method: POST
path: "/api/v1/folder/byPath"
tags: ["Folders"]
---

# Find subfolders by path

`POST /api/v1/folder/byPath`

Retrieves subfolders of a given path, filtered by the path sent. The path format supports site-specific search (//siteName/path) or global search (/path). For example: '//default/folder1/' returns subfolder1, subfolder2 under folder1 in the 'default' site. '/folder1/s' returns all subfolders starting with 's' under folder1 across all sites.

## Query parameters

- `offset` integer
- `limit` integer

## Response `200`

Subfolders retrieved successfully

- ResponseEntityFolderSearchResultView
  - `errors` ErrorEntity[]
    - `errorCode` string
    - `message` string
    - `fieldName` string
  - `entity` FolderSearchResultView[]
    - `id` string
    - `inode` string
    - `path` string
    - `hostName` string
    - `addChildrenAllowed` boolean
  - `messages` MessageEntity[]
    - `message` string
  - `i18nMessagesMap` object
  - `permissions` string[]
  - `pagination` Pagination
    - `currentPage` integer
    - `perPage` integer
    - `totalEntries` integer

## Other responses

- `400` — Path property must be sent
- `401` — Authentication required
- `403` — Insufficient permissions
- `404` — Site not found

---

[API](https://skmtc.dev/jostens/apis/dotcms-rest-api.md) · [All operations](https://skmtc.dev/jostens/apis/dotcms-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/jostens/dotcms-rest-api/revisions/a088fe9f515c/schema)
