---
title: Edit SSL Certificate Pack Validation Method
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/go)

[SSL](https://developers.cloudflare.com/api/go/resources/ssl)

[Verification](https://developers.cloudflare.com/api/go/resources/ssl/subresources/verification)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Edit SSL Certificate Pack Validation Method

client.SSL.Verification.Edit(ctx, certificatePackID, params) (\*[VerificationEditResponse](<https://developers.cloudflare.com/api/go/resources/ssl#(resource)%20ssl.verification%20%3E%20(model)%20VerificationEditResponse%20%3E%20(schema)>), error)

PATCH/zones/{zone\_id}/ssl/verification/{certificate\_pack\_id}

Edit SSL validation method for a certificate pack. A PATCH request will request an immediate validation check on any certificate, and return the updated status. If a validation method is provided, the validation will be immediately attempted using that method.

##### Security

<details>

<summary>API Token</summary>



The preferred authorization scheme for interacting with the Cloudflare API. <a href="https://developers.cloudflare.com/fundamentals/api/get-started/create-token/">Create a token</a>.

**Example:**<code>Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY</code>

</details>

<details>

<summary>API Email + API Key</summary>



The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.

**Example:**<code>X-Auth-Email: user@example.com</code>

The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.

**Example:**<code>X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194</code>

</details>

##### Accepted Permissions (at least one required)

`Access: Mutual TLS Certificates Write``Access: Mutual TLS Certificates Read``SSL and Certificates Write``SSL and Certificates Read`

##### ParametersExpand Collapse

certificatePackID string

Certificate Pack UUID.

[Link to this property](<#(resource)%20ssl.verification%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20certificate_pack_id%20%3E%20(schema)>)

<details>

<summary>

params VerificationEditParams

</summary>

ZoneID param.Field\[string]

Path param: Identifier.

maxLength32

<a href="#(resource)%20ssl.verification%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20zone_id">Link to this property</a>

<details>

<summary>

ValidationMethod param.Field\[<a href="https://developers.cloudflare.com/api/go/resources/ssl/subresources/verification/methods/edit#(resource)%20ssl.verification%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20validation_method%20%3E%20(schema)">VerificationEditParamsValidationMethod</a>]

Body param: Desired validation method.

</summary>

const VerificationEditParamsValidationMethodHTTP <a href="https://developers.cloudflare.com/api/go/resources/ssl/subresources/verification/methods/edit#(resource)%20ssl.verification%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20validation_method%20%3E%20(schema)">VerificationEditParamsValidationMethod</a> = "http"

<a href="#(resource)%20ssl.verification%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20validation_method%20%3E%20(schema)%20%3E%20(member)%200">Link to this property</a>

const VerificationEditParamsValidationMethodCNAME <a href="https://developers.cloudflare.com/api/go/resources/ssl/subresources/verification/methods/edit#(resource)%20ssl.verification%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20validation_method%20%3E%20(schema)">VerificationEditParamsValidationMethod</a> = "cname"

<a href="#(resource)%20ssl.verification%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20validation_method%20%3E%20(schema)%20%3E%20(member)%201">Link to this property</a>

const VerificationEditParamsValidationMethodTXT <a href="https://developers.cloudflare.com/api/go/resources/ssl/subresources/verification/methods/edit#(resource)%20ssl.verification%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20validation_method%20%3E%20(schema)">VerificationEditParamsValidationMethod</a> = "txt"

<a href="#(resource)%20ssl.verification%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20validation_method%20%3E%20(schema)%20%3E%20(member)%202">Link to this property</a>

const VerificationEditParamsValidationMethodEmail <a href="https://developers.cloudflare.com/api/go/resources/ssl/subresources/verification/methods/edit#(resource)%20ssl.verification%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20validation_method%20%3E%20(schema)">VerificationEditParamsValidationMethod</a> = "email"

<a href="#(resource)%20ssl.verification%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20validation_method%20%3E%20(schema)%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20ssl.verification%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20validation_method">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ssl.verification%20%3E%20(method)%20edit%20%3E%20(params)%20default>)

##### ReturnsExpand Collapse

<details>

<summary>

type VerificationEditResponse struct{…}

</summary>

Status stringOptional

Result status.

<a href="#(resource)%20ssl.verification%20%3E%20(model)%20VerificationEditResponse%20%3E%20(schema)%20%3E%20(property)%20status">Link to this property</a>

<details>

<summary>

ValidationMethod VerificationEditResponseValidationMethodOptional

Desired validation method.

</summary>

One of the following:

const VerificationEditResponseValidationMethodHTTP VerificationEditResponseValidationMethod = "http"

<a href="#(resource)%20ssl.verification%20%3E%20(model)%20VerificationEditResponse%20%3E%20(schema)%20%3E%20(property)%20validation_method%20%3E%20(member)%200">Link to this property</a>

const VerificationEditResponseValidationMethodCNAME VerificationEditResponseValidationMethod = "cname"

<a href="#(resource)%20ssl.verification%20%3E%20(model)%20VerificationEditResponse%20%3E%20(schema)%20%3E%20(property)%20validation_method%20%3E%20(member)%201">Link to this property</a>

const VerificationEditResponseValidationMethodTXT VerificationEditResponseValidationMethod = "txt"

<a href="#(resource)%20ssl.verification%20%3E%20(model)%20VerificationEditResponse%20%3E%20(schema)%20%3E%20(property)%20validation_method%20%3E%20(member)%202">Link to this property</a>

const VerificationEditResponseValidationMethodEmail VerificationEditResponseValidationMethod = "email"

<a href="#(resource)%20ssl.verification%20%3E%20(model)%20VerificationEditResponse%20%3E%20(schema)%20%3E%20(property)%20validation_method%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20ssl.verification%20%3E%20(model)%20VerificationEditResponse%20%3E%20(schema)%20%3E%20(property)%20validation_method">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ssl.verification%20%3E%20(model)%20VerificationEditResponse%20%3E%20(schema)>)

### Edit SSL Certificate Pack Validation Method

Go

HTTPTypeScriptPythonGoTerraform

```
package main

import (
  "context"
  "fmt"

  "github.com/cloudflare/cloudflare-go"
  "github.com/cloudflare/cloudflare-go/option"
  "github.com/cloudflare/cloudflare-go/ssl"
)

func main() {
  client := cloudflare.NewClient(
    option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"),
  )
  response, err := client.SSL.Verification.Edit(
    context.TODO(),
    "a77f8bd7-3b47-46b4-a6f1-75cf98109948",
    ssl.VerificationEditParams{
      ZoneID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"),
      ValidationMethod: cloudflare.F(ssl.VerificationEditParamsValidationMethodTXT),
    },
  )
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", response.ValidationMethod)
}
```

200 example

```
{
  "errors": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "messages": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "success": true,
  "result": {
    "status": "pending_validation",
    "validation_method": "txt"
  }
}
```

##### Returns Examples

200 example

```
{
  "errors": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "messages": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "success": true,
  "result": {
    "status": "pending_validation",
    "validation_method": "txt"
  }
}
```