Skip to main content

Change domain DCV method

PUT https://www.digicert.com/services/v2/domain/{{domain_id}}/dcv/method

Use this endpoint to set the domain control validation (DCV) method for a domain.

DCV emails

By default, changing the DCV method to email from any other method automatically sends DCV emails to the email addresses returned in the validation_emails array.

  • To change the DCV method to email without sending any DCV emails, set the value of the send_dcv_email_flag request parameter to false in your JSON payload.

  • If the domain is already configured to use email as the DCV method, submitting email as the DCV method does not cause new DCV emails to be sent. To resend DCV emails, use the Resend domain DCV emails endpoint.

Example requests and responses

Path parameters

Name

Req/Opt

Description

domain_id

required

Domain ID.

Request parameters

Name

Req/Opt

Type

Description

dcv_method

required

string

DCV method to use for the domain.

Allowed values: See Glossary – DCV methods

locale

optional

string

Locale code for the language of the DCV emails. Ignored if dcv_method is not email.

Allowed values: See Glossary – Locale codes.

Default: If the request does not include a valid locale code, we send the DCV emails in English.

send_dcv_email_flag

optional

boolean

If true (default) and you change the dcv_method to email from any other method, DigiCert automatically sends DCV emails to the email addresses returned in the validation_emails array. Otherwise, false.

If the domain is already configured to use email as the DCV method, passing true for the send_dcv_email_flag parameter does not cause new DCV emails to be sent. To resend DCV emails, use the Resend DCV email endpoint.

email_array

optional

array of strings

Response parameters

Notice

Submitting the same dcv_method already set for the domain returns an empty JSON object: {}

Name

Type

Description

validation_emails

object

Email addresses used when sending DCV emails. Only returned when changing the DCV method to email.

.. name_scope

string

Domain scope used for WHOIS record and constructed email addresses.

.. base_emails

array of strings

List of constructed email addresses.

.. whois_emails

array of strings

List of email addresses on WHOIS record.

.. email_array

array of strings

dcv_token

string

Object containing information about the DCV method change.

.. token

string

Random value used to prove control over domain.

.. status

string

Status of the domain verification.

.. expiration_date

string

Timestamp of when the DCV token will expire.

Format: UTC timezone and ISO 8601 date

.. verification_value

string

Value for the DNS record target host field Only returned if DCV method is dns-cname-token.

.. http_token_url

string

Filename and location for the .txt file. Only returned if DCV method is http-token.