---
search:
  tags:
    - edge
    - PATCH
seo:
  description: >-
    As for a site's domains (PATCH… Reference for the PATCH
    /v1/sandboxes/{sandbox}/ports/{port}/domains/{domain} endpoint in the
    pols.so API.
sidebar:
  label: Make a custom domain the port's primary one, or not
  badge: PATCH
title: Make a custom domain the port's primary one, or not
type: openapi-operation
---
As for a site's domains (`PATCH /v1/sites/{site}/domains/{domain}`):
once the port's primary domain has its certificate, its other
custom domains redirect to it (308, path and query kept); the
port's own host keeps serving it.

`PATCH /v1/sandboxes/{sandbox}/ports/{port}/domains/{domain}`
