Add or remove hostnames for a property version

Modify the set of hostnames for a property version. For new entries, specify an add array with a cnameFrom set to the hostname that your end users see, that is the Host header in end user requests. In either cnameTo or edgeHostnameId, specify an existing edge hostname that you want to redirect your hostname to. If you're using Secure by Default, you can set the cnameTo parameter to an edge hostname that doesn't exist yet, and PAPI creates it automatically when you activate the property version. To remove a hostname, specify a remove array with the address of the hostname you don't want to use with this property version anymore. If you remove an edge hostname from an active property configuration, use the Edge Hostname API (HAPI) to delete it entirely. If you modify hostnames with default certificates, the response includes additional X-Limit-Default-Certs-Per-Contract-Limit and X-Limit-Default-Certs-Per-Contract-Remaining headers indicating their limits.

Add a hostname to an existing property
Open Recipe
Remove a hostname from an existing property
Open Recipe
Click Try It! to start a request and see the response here!