> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# Resource: Domain Assignments

# Type: Domain Assignment Object

# Link: https://dev.wix.com/docs/api-reference/account-level/domains/domain-assignments/domain-assignment-object.md

## Description: A domain assignment connects a domain to a Wix site, either as the site's primary
domain or as a redirect to the site's primary domain. A domain can be assigned to
1 site at a time, and each site has a single primary domain.

## Schema:

```json
 Type: Domain Assignment Object | type: DomainAssignment
 Description: A domain assignment connects a domain to a Wix site, either as the site's primary
domain or as a redirect to the site's primary domain. A domain can be assigned to
1 site at a time, and each site has a single primary domain.
       - name: id  | type: string | description: Domain assignment ID. Identical to `domain`.
       - name: domain  | type: string | description: Domain name, including the top-level domain. For example, `mystunningsite.com`.
       - name: siteInfo  | type: SiteInfo | description: Site the domain is assigned to, and whether the domain is the site's primary domain or a redirect.
           - name: id  | type: string | description: ID of the site the domain is assigned to.  Required unless the request header specifies the site ID. If you specify the site ID in both places, the IDs must be identical.
               - name: value  | type: string | description: 
           - name: assignmentType  | type: string | description: Whether the domain is the site's primary domain or a redirect to the site's primary domain.
               enum: PRIMARY, REDIRECT
       - name: createdDate  | type: string | description: Date and time the domain assignment was created.
           - name: seconds  | type: string | description: 
           - name: nanos  | type: number | description: 
       - name: updatedDate  | type: string | description: Date and time the domain assignment was last updated.

```