# ProtectedUserCreate

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

UrbeStack release 0.2.35 named type of the API.

## Fields

- `password` (string, up to 128 characters, required): Password of 8 to 128 printable ASCII characters. Browsers can encode other characters differently in Basic authentication.
- `username` (ProtectedUsername, required): A Basic authentication username must be 1 to 64 characters long and start with a letter or digit. Allowed characters are letters, digits, dots, underscores, hyphens, @, and +.
- `expires_at` (string, matching ^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$ or null): Future UTC time, such as 2026-11-04T09:30:00Z, at which Apache stops granting the user access. Omit this field to grant access with no expiration.

## Used by

- [POST /protected-folders/{id}/users](https://urbestack.com/docs/api/post-protected-folders-id-users.md): Add a user to a protected folder
