/domainsAdd a domain
Add a new domain for your instance.
Useful in the case of multi-domain instances, allows adding satellite domains to an instance.
The new domain must have a name. The domain name can contain the port for development instances, like localhost:3000.
Set is_satellite to true to add a satellite domain.
To migrate a production instance from an active provider domain to its first custom primary domain,
set is_satellite to false. The custom domain becomes active and the provider domain stays attached.
Additional custom primary domains are not supported.
If you're planning to configure the new satellite domain to run behind a proxy, pass the proxy_url parameter accordingly.
Adding a custom primary domain returns 403 domain_managed_by_integration for applications in a Vercel-managed workspace; change the domain from the Vercel integration instead.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
A 400 is returned: Request was not successful. A 402 is returned: Request was not successful. A 403 is returned: Request was not successful. A 422 is returned: Invalid request parameters.