Skip to main content
Cloudflare Management

Update Cloudflare default alias settings

Sets team-wide default alias settings for future server provisioning (not existing servers). First call getCloudflareCredentials for the Webdock credential id, then getCloudflareCredentialZones with that credentialId for zoneId and zoneName. accountId is that Webdock credential id, not a native Cloudflare account id. Replaces the default {slug}.vps.webdock.cloud alias on newly provisioned servers.

PATCH
/account/cloudflare/defaultAlias
Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
accountIdintegerrequired

Webdock Cloudflare credential id returned by getCloudflareCredentials (also used as credentialId in getCloudflareCredentialZones); not the native Cloudflare account id.

Required range: 1 <= x
patternstring

Optional alias pattern inserted between slug and zone

zoneIdstringrequired
zoneNamestringrequired

Cloudflare zone name/domain; must match the selected zoneId

Response

application/json

Updated default alias settings

aliasPatternstring
cloudflareAccountIdinteger

Webdock Cloudflare credential id, or 0 when unset; not a native Cloudflare account id

customAliasExamplestring | null
defaultWebdockAliasExamplestring
hasDefaultAliasboolean
mainUseCasestring
zoneIdstring
zoneNamestring