Domain redirects
Create a domain redirect
Creates a redirect on the domain (optionally on a subdomain) with an initial rule, and prepares the DNS records needed to activate it.
path Parameters
domainThe domain UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Create a domain redirect › Request Body
The initial redirect rule.
subdomainSubdomain to redirect. Omit for the apex domain.
Create a domain redirect › Responses
DomainRedirectResource
Apply the redirect DNS
Creates the redirect's DNS records at the domain's DNS zones.
path Parameters
domainThe domain UUID
domainRedirectThe domain redirect UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Apply the redirect DNS › Responses
DomainRedirectResource
Verify the redirect DNS
Checks whether the redirect's DNS records are live and updates its verification state.
path Parameters
domainThe domain UUID
domainRedirectThe domain redirect UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Verify the redirect DNS › Responses
DomainRedirectResource
Delete a domain redirect
Deletes a redirect and all of its rules.
path Parameters
domainThe domain UUID
domainRedirectThe domain redirect UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Delete a domain redirect › Responses
DomainRedirectResource
Add a redirect rule
Adds a rule to an existing domain redirect. Rules are evaluated in sort_order.
path Parameters
domainThe domain UUID
domainRedirectThe domain redirect UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Add a redirect rule › Request Body
source_pathPath to match.
target_urlURL to redirect to.
typeRedirect type: 301 (permanent) or 302 (temporary).
preserve_pathAppend the matched path to the target URL.
sort_orderEvaluation order (lower first).
Add a redirect rule › Responses
DomainRedirectRuleResource
Update a redirect rule
Updates a redirect rule. Only the fields present in the request are changed.
path Parameters
domainThe domain UUID
domainRedirectThe domain redirect UUID
domainRedirectRuleThe domain redirect rule UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Update a redirect rule › Request Body
source_pathPath to match.
target_urlURL to redirect to.
typeRedirect type: 301 (permanent) or 302 (temporary).
preserve_pathAppend the matched path to the target URL.
sort_orderEvaluation order (lower first).
Update a redirect rule › Responses
DomainRedirectRuleResource
Delete a redirect rule
Deletes a redirect rule. The last remaining rule of a redirect cannot be deleted.
path Parameters
domainThe domain UUID
domainRedirectThe domain redirect UUID
domainRedirectRuleThe domain redirect rule UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Delete a redirect rule › Responses
DomainRedirectRuleResource