This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Assigns a domain to a site, or moves the domain from a different site.
Upsert Domain Assignment creates or updates the domain assignment based on the domain's current state:
assignmentType. To make
the domain the site's primary domain, call
Set Domain As Primary.The site must have a Premium plan.
When you assign a domain as PRIMARY to a site that already has domain
assignments, the site's existing domain assignments are removed, including its
previous primary domain and all redirects. To keep them, assign the domain as
REDIRECT, and then call Set Domain As Primary.
When you assign a domain as REDIRECT to a site that has no domain
assignments, the domain becomes the site's primary domain.
You must specify the Wix account ID in the wix-account-id header.
There is 1 error with this status code.
This method may also return standard errors. Learn more about standard Wix errors.