Skip to main content
Cloudflare Management

Update a connected Cloudflare credential

Replaces an existing Cloudflare credential. Supply accountName and the full apiKey/token again (the secret is never returned by GET). If authMode is omitted the existing credential type is retained; username is required only for global_api_key. Revalidates zone access before saving.

PATCH
/account/cloudflare/credentials/{credentialId}
Authorizationstringheaderrequired

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

credentialIdintegerrequired

Positive Webdock credential id from getCloudflareCredentials; not the native Cloudflare account id.

Required range: 1 <= x

Body

application/json
accountNamestringrequired
apiKeystringrequired

Required again even when only updating the label; the current secret is not returned by GET.

authModeenum<string>

Omit to keep the credential's current auth mode.

Available options: global_api_key, api_token
usernamestring

Cloudflare account email; required for global_api_key, ignored for api_token

Response

application/json

Updated credential list

itemsobject[]