Create (or revive) a subdomain (ns_delegation parent only)
Requires EDITOR. Returns status=draft; no external call (auto-supply is cron-driven).
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”projectId
required
string
Project (tenant) identifier. Row-level tenant isolation is enforced on every query.
id
required
string
Custom domain identifier.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
label
required
string
Examplegenerated
{ "label": "example"}Responses
Section titled “Responses”Created subdomain.
Media typeapplication/json
object
subdomain
object
id
string
domainId
string
projectId
string
label
string
fqdn
string
status
string
cloudflareJson
route53Json
createdAt
string
updatedAt
string
key
additional properties
any
Parent not ns_delegation, or invalid label.
Media typeapplication/json
object
error
required
Human-readable error message.
string
message
string
Examplegenerated
{ "error": "example", "message": "example"}Not authenticated (401 via requireAuthenticated) or insufficient project role (403).
Media typeapplication/json
object
error
required
Human-readable error message.
string
message
string
Examplegenerated
{ "error": "example", "message": "example"}Resource not found (or cross-tenant — same 404).
Media typeapplication/json
object
error
required
Human-readable error message.
string
message
string
Examplegenerated
{ "error": "example", "message": "example"}Subdomain already occupied/exists.
Media typeapplication/json
object
error
required
Human-readable error message.
string
message
string
Examplegenerated
{ "error": "example", "message": "example"}