v1

latestOpenAPI 3.0.02026-07-14198572488.4 KB
Domains

Create additional domain (domain alias).

Add an additional domain (domain alias) which will also point to the WordPress install (for use with multi-site or custom multi-domain installs)

post/v1/sites/{id}/domains

Path parameters

idinteger required

ID of the Site you are interacting with

Example:8880000888

Request body

domainstring required

Name of the additional domain

Example request

{
  "domain": "bestdomain.rocket.net"
}

Response

OK

successboolean

whether the request succeeded

errorsstring[]
messagesstring[] nullable

Example response

{
  "success": true,
  "errors": [],
  "messages": []
}