v1

latestOpenAPI 3.0.2cPanel License2026-08-06657427.1 MB
Park

Park an alias domain on an existing domain

This function parks (aliases) a domain on the cPanel account, so that the domain serves the content of a domain that already exists on the account.

Important:

  • Without the topdomain parameter, the system parks the domain on the account's primary domain.
  • With the topdomain parameter, the system parks the domain on a subdomain of the primary domain. That arrangement is how an addon domain is represented. To create an addon domain and its subdomain in one call, use the AddonDomain::addaddondomain function instead.
  • The account must have either the Parked Domains or the Addon Domains feature. Parking on the primary domain requires the Parked Domains feature specifically.

When you disable the Web Server role, the system disables this function.

get/Park/park

Query parameters

domainstring domain required
Example:alias.example.com

The domain to park. The system removes a leading www. from this value and converts it to lowercase before it validates the domain.

disallowdot0 | 1
Example:1

Whether to remove the dot (.) characters from the topdomain value, rather than only trimming a trailing dot. This parameter has no effect unless you also pass the topdomain parameter.

  • 1 - Remove dots from the subdomain label.
  • 0 - Do not remove dots from the subdomain label.
force0 | 1
Example:1

Whether to allow the system to overwrite an existing DNS zone for the domain value.

  • 1 - Overwrite an existing zone.
  • 0 - Fail if a zone already exists.
topdomainstring
Example:shop

The subdomain label of the account's primary domain to park the domain value on. The system appends the primary domain to this value.

Omit this parameter to park the domain on the primary domain itself.

Response

HTTP Request was successful.

{"stackTrail":"paths:/Park/park:get:responses:200:content:application/json:schema:properties:data","oasType":"schema","type":"unknown","description":"This function does not return data. Check the `status` field for the outcome, and the `messages` and `errors` fields for detail."}
errorsstring[] nullable
messagesstring[] nullable
status0 | 1
  • 1 — Success.
  • 0 — Failed. Check the errors field for more details.
warningsstring[] nullable

Example response

{
  "status": 1
}