---
title: "PUT /dataConnections/{dataConnectionName}"
method: PUT
path: "/dataConnections/{dataConnectionName}"
tags: ["Data Connections"]
---

# PUT /dataConnections/{dataConnectionName}

`PUT /dataConnections/{dataConnectionName}`

Create or replace a data connection with a given dataConnectionName.

## Path parameters

- `dataConnectionName` string, required

## 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.

- DataConnection
  - `kind` string, required — Discriminator property for DataConnection.
  - `id` string — This is typically the same as the name but might be different for different models.
  - `name` string, required — The caller provided unique name for the resource.
  - `displayName` string — The name that can be used for display purposes.
  - `content` 'assets' | 'attackSurfaceInsights' — The type of data the data connection will transfer
  - `createdDate` string, date-time — The date the data connection was created.
  - `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)
  - `updatedDate` string, date-time — The date the data connection was last updated.
  - `userUpdatedAt` string, date-time — The date the data connection was last updated by user.
  - `active` boolean — An indicator of whether the data connection is active.
  - `inactiveMessage` string — A message that specifies details about data connection if inactive.

## 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)
