Skip to main content

setPrimaryOrganizationDomain

Requires at least one of the permissions settings:organization:update or settings:tenant:update.

Makes a custom hostname the portal's main address. It must be custom and already active; only one is primary at a time. Needs settings:organization:update, or settings:tenant:update.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

mutation SetPrimaryOrganizationDomain($id: ID!) {
setPrimaryOrganizationDomain(id: $id) {
id
status
createdAt
hostname
isPrimary
kind
}
}

Variables:

{
"id": "id"
}

Response:

{
"data": {
"setPrimaryOrganizationDomain": {
"id": "id",
"status": "ACTIVE",
"createdAt": "2025-01-15T00:00:00Z",
"hostname": "string",
"isPrimary": true,
"kind": "CUSTOM"
}
}
}
setPrimaryOrganizationDomain(
id: ID!
): OrganizationDomain!

Arguments​

setPrimaryOrganizationDomain.id ● ID! non-null scalar​

The ID of the domain.

Type​

OrganizationDomain object​

A host name the organization's portal answers on.