Domain aliases
Note: this API is in beta currently and is subject to change in the future.
Domain aliases
The Domain aliases resource allows creation of alternate URLs for Site objects that can be hosted under a different domain and/or directory. These URLs render a copy of the Site, but can modify certain fields to change their properties.
The most common use of Domain aliases is to create alternate URLs for different languages or language/regions.
Domain alias object
Domain alias model
A domain alias contains the following fields
Example object:
Create a domain alias
POST /api/v2/domain_aliases/
List domain aliases
List all domain aliases including active and deleted
List all domain aliases associated with a Site ID
Parameters
Response
Get a single domain alias
Fetch the Domain alias detail using the DomainAlias.id
Updating a domain alias
You can PUT
a partial or full object to the detail endpoint to update/change values on the Domain alias object. If using a partial object, you must insure that the primary domain alias id
is part of the payload.
Disabling / enabling a domain alias
Disabling a domain alias
To disable an active domain alias and clear all cache references to the domain, use the DELETE
method on the Domain alias detail endpoint.
Enabling a domain alias
To enable a currently disabled domain alias, you will set the param for deleted
to False
using the Update endpoint
Last updated