Domain Patterns

Creates a domain pattern for the specified codebase.

post/codebases/{codebaseId}/domain-patterns

Request

Path parameters

codebaseIdstring required

Unique identifier for the codebase.

Request body

patternstring required

The domain pattern to apply to all associated sites in this codebase, optionally followed by a single path segment. Both [site-name] and [environment-name] tokens are mandatory. 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 codebase) are enforced at the service layer.

Response

Domain pattern creation initiated.

_embeddedobject

Embedded resources (optional)

message'Created custom domain pattern. Unique domains are being created for each site.' 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.