Create environment domain

createDomain(input: CreateDomainInput!): Domain!

Requires project.domains.write.

Arguments

ArgumentTypeRequired
inputCreateDomainInput!Yes

Input fields

input

CreateDomainInput

FieldTypeRequiredDescription
environmentIdID!YesEnvironment UUID.
domainString!YesCustom hostname. The hostname must resolve to Veryfront before it is attached.

Response

Returns Domain!. Open the type for its fields and nested types.

FieldType
idID!
domainString!
environmentIdID
projectIdID
createdAtDateTime
updatedAtDateTime

Types marked with ! cannot be null. Lists use [Type] notation. The type index lists all published input and response types.

Example

graphql
mutation CreateDomain($input: CreateDomainInput!) {
  createDomain(input: $input) {
    id
    projectId
    createdAt
    updatedAt
    domain
  }
}
json
{
  "input": {
    "environmentId": "00000000-0000-4000-8000-000000000001",
    "domain": "example"
  }
}