PATCH

Set Domain As Primary


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Sets a domain as the primary domain of the site it's assigned to.

The site's previous primary domain becomes a redirect, and all of the site's redirect domains point to the new primary domain. If the domain is already the site's primary domain, the domain assignment is returned unchanged.

To assign a domain to a site, call Upsert Domain Assignment.

You must specify the Wix account ID in the wix-account-id header.

Permission Scopes
Manage Domains
Learn more about app permissions.
Endpoint
PATCH
https://www.wixapis.com/domains/v1/domain-assignments/{domainAssignmentId}

Errors

This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?