Skip to content
中文

Change account subdomain

PUT /application/v1/subdomain

Change the account subdomain. Every Worker moves to the new address at once; old addresses stop resolving.

Support: supported

Request body (application/json)

Required: true

NameTypeDescription
subdomainstringAccount subdomain, 8–32 lowercase letters and digits; part of every Worker URL.
{
"type": "object",
"required": [
"subdomain"
],
"properties": {
"subdomain": {
"type": "string",
"description": "Account subdomain, 8–32 lowercase letters and digits; part of every Worker URL.",
"pattern": "^[a-z0-9]{8,32}$",
"example": "acme1234"
}
}
}

Response

HTTP 200

Success

application/json

Name Type Description
subdomain string Account subdomain, 8–32 lowercase letters and digits; part of every Worker URL.