# DomainCreate

First published 3 Oct 2026 (release 0.1.0) · Unchanged since publication

UrbeStack release 0.2.35 named type of the API.

## Fields

- `name` (DomainName, required): A domain name is case-insensitive and stored in lowercase.
- `parent` (DomainName): A domain name is case-insensitive and stored in lowercase.
- `php_version` (string, matching ^[5-9]\.[0-9]$)
- `template` (string, matching ^[a-z][a-z0-9-]{0,31}$): Name of the virtual host template used to render the site's configuration. The name must match ^[a-z][a-z0-9-]{0,31}$ and refer to an available template in UrbeStack's apache-vhost-<name>.tmpl files or the administrator's overrides. Only administrators can set this field. Requests from anyone else that supply it return 403.
- `user` (Username): A username consists of lowercase letters, digits and underscores. For the user role, it also serves as the system account name.

## Used by

- [POST /domains](https://urbestack.com/docs/api/post-domains.md): Add a hosted domain
