---
title: "POST /dataConnections:validate"
method: POST
path: "/dataConnections:validate"
tags: ["Data Connections"]
---

# POST /dataConnections:validate

`POST /dataConnections:validate`

Validate a data connection with a given dataConnectionName.

## Query parameters

- `api-version` string, required

## Request body

- DataConnectionData
  - `kind` string, required — Discriminator property for DataConnectionData.
  - `name` string — The name of data connection
  - `content` 'assets' | 'attackSurfaceInsights' — The type of data the data connection will transfer
  - `frequency` 'daily' | 'weekly' | 'monthly' — The rate at which the data connection will receive updates.
  - `frequencyOffset` integer — The day to update the data connection on. (1-7 for weekly, 1-31 for monthly)

## Response `200`

The request has succeeded.

- ValidateResult — Validate result for validate action endpoints
  - `error` ErrorDetail — This is the top-level error object whose code matches the x-ms-error-code response header.
    - `code` string, required — This is one of a server-defined set of error codes.
    - `message` string, required — This is a human-readable representation of the error.
    - `target` string — This is the error target.
    - `details` ErrorDetail[] — This is an array of details about specific errors that led to this reported error.
    - `innererror` InnerError — This is an object containing more specific information than the current object about the error.
      - `code` string — This is a more specific error code than was provided by the containing error.
      - `value` unknown

## Other responses

- `default` — An unexpected error response.

---

[API](https://skmtc.net/azure/apis/riskiq-microsoft-easm.md) · [All operations](https://skmtc.net/azure/apis/riskiq-microsoft-easm/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/riskiq-microsoft-easm/revisions/5865b52c51a3/schema)
