Skip to main content
The duplicateDomain mutation duplicates (clones) an existing domain, creating an independent copy.

Signature

This mutation requires write permission (zsheet:write) on the source domain.

Arguments

id
ID!
required
The ID of the source domain to duplicate.
workspaceID
ID
The target workspace ID where the duplicate domain will be created. Defaults to the current workspace if not specified.

Response

Returns a DomainModel object representing the newly created duplicate domain. See DomainModel for the schema.

Usage example

Duplicate a domain into the current workspace:

DomainModel Schema

Learn about domain structure and properties

Create Domain

Create a new domain from scratch