Domain Patterns

Creates a domain pattern for the specified environment.

post/environments/{environmentId}/domain-patterns

Request

Path parameters

environmentIdstring required

Unique identifier for the environment.

Request body

patternstring required

The domain pattern to apply to all associated sites in this environment, optionally followed by a single path segment. The [site-name] token is mandatory; [environment-name] is optional. Domain ≤ 200 chars excluding token placeholders; optional path max 255 chars matching ^/[A-Za-z0-9._-]+$. Additional semantic rules (no IPs, no forbidden suffixes, no wildcards, one pattern per environment) are enforced at the service layer.

Example request

{
  "pattern": "[site-name].acme.com"
}

Response

Domain pattern creation initiated.

_embeddedobject

Embedded resources (optional)

message'The domain pattern is being applied to all associated sites in this environment.' required

Confirmation message that the domain pattern is being applied.

Example response

{
  "_links": {
    "self": {
      "href": "https://api.acquia.com/v3/resources/1"
    }
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.