---
title: "SiteProtectedDir"
description: "Password-protected directory rule. Passwords are stored as bcrypt hashes and are never returned by the API."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.hostedez.com/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Hosted EZ REST API

Password-protected directory rule. Passwords are stored as bcrypt hashes and are never returned by the API.

## Fields

- `SiteProtectedDir.createdAt` (string, required)
  - format `date-time`
- `SiteProtectedDir.enabled` (boolean, required)
- `SiteProtectedDir.id` (string, required) — Prefixed protected directory ID (pdr_...).
- `SiteProtectedDir.path` (string, required) — Protected URL path starting with '/'.
- `SiteProtectedDir.realm` (string, required) — HTTP Basic Auth realm prompt shown in browsers.
- `SiteProtectedDir.siteId` (string, required) — Hosted EZ site slug (sit_...).
- `SiteProtectedDir.updatedAt` (string, required)
  - format `date-time`
- `SiteProtectedDir.username` (string, required)


Source: https://docs.hostedez.com/api/schemas/SiteProtectedDir/index.md
