# ProtectedFolder

First published 4 Nov 2026 (release 0.2.24) · Unchanged since publication

UrbeStack release 0.2.35 named type of the API.

## Fields

- `created_at` (string)
- `exists` (boolean): Whether the path still points to an actual directory on disk.
- `id` (integer)
- `list_files` (boolean): Whether authenticated visitors see a file listing when the folder has no index page. Enabled by default when protection is added. Sites rooted at this folder use their own directory listing settings.
- `path` (HomePath): Folder path as shown on the Files page, where / represents the customer's home directory.
- `sites` (array of object): Active sites whose document roots are this folder or an ancestor of it, ordered from the nearest root first. Each entry includes the folder's URL on that site.
  - `domain` (DomainName): A domain name is case-insensitive and stored in lowercase.
  - `url` (string)
- `users` (array of ProtectedUser): Protected users ordered by username. Password hashes are omitted.

## Used by

- [GET /protected-folders](https://urbestack.com/docs/api/get-protected-folders.md): List an account's password-protected folders
- [POST /protected-folders](https://urbestack.com/docs/api/post-protected-folders.md): Protect a folder with HTTP Basic authentication
- [PATCH /protected-folders/{id}](https://urbestack.com/docs/api/patch-protected-folders-id.md): Change the directory listing setting for a protected folder
- [POST /protected-folders/{id}/users](https://urbestack.com/docs/api/post-protected-folders-id-users.md): Add a user to a protected folder
- [PATCH /protected-folders/{id}/users/{username}](https://urbestack.com/docs/api/patch-protected-folders-id-users-username.md): Update a user in a protected folder
- [DELETE /protected-folders/{id}/users/{username}](https://urbestack.com/docs/api/delete-protected-folders-id-users-username.md): Remove a user from a protected folder
