Skip to main content
PATCH
/
domains
/
{domain}
Update domain
curl --request PATCH \
  --url https://cloud.laravel.com/api/domains/{domain} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "verification_method": "real_time"
}
'
{
  "data": {
    "id": "<string>",
    "type": "domains",
    "links": {
      "self": {
        "href": "<string>",
        "rel": "<string>",
        "describedby": "<string>",
        "title": "<string>",
        "type": "<string>",
        "hreflang": "<string>",
        "meta": {}
      }
    },
    "relationships": {}
  },
  "included": [
    {
      "id": "<string>",
      "type": "environments",
      "links": {
        "self": {
          "href": "<string>",
          "rel": "<string>",
          "describedby": "<string>",
          "title": "<string>",
          "type": "<string>",
          "hreflang": "<string>",
          "meta": {}
        }
      },
      "relationships": {}
    }
  ]
}

Authorizations

Authorization
string
header
required

The Bearer Token generated on the Cloud UI.

Path Parameters

domain
string | null
required

The domain identifier

Body

application/json
verification_method
enum<string>
required

The domain verification method to use. Pre-verification allows domain verification via TXT record before the domain is pointed to the environment. Real-time verification requires the domain to already be pointing to the environment.

Available options:
pre_verification,
real_time
Example:

"real_time"

Response

DomainResource

data
DomainResource · object
required
included
EnvironmentResource · object[]