---
title: "CreateSiteProtectedDirRequest"
---

> 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

## Fields

- `CreateSiteProtectedDirRequest.password` (string, required) — Plaintext password (8 to 72 bytes); hashed with bcrypt before storage and never returned.
  - minLength 8; maxLength 72
- `CreateSiteProtectedDirRequest.path` (string, required)
  - minLength 1; maxLength 512
- `CreateSiteProtectedDirRequest.realm` (string, required)
  - minLength 1; maxLength 64
- `CreateSiteProtectedDirRequest.username` (string, required)
  - pattern `^[A-Za-z0-9._-]{1,64}$`
- `CreateSiteProtectedDirRequest.enabled` (boolean, optional)
  - default `true`


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