---
title: "Create or update an export"
method: PUT
path: "/dataExport/exports/{exportId}"
---

# Create or update an export

`PUT /dataExport/exports/{exportId}`

Create or update a definition for exporting data. Also used to connect or disconnect an export from destinations.

## Path parameters

- `exportId` string, required

## Query parameters

- `api-version` string, required

## Request body

- Export — The data export status definition.
  - `status` string — Indication of the current health and operation of the export or destination.
  - `errors` DataExportError[] — Errors encountered by the export or destination.
    - `code` string — The code for the error that occurred.
    - `message` string — The description of the error that occurred.
  - `lastExportTime` string, date-time — The timestamp of the last message that was sent to the export or destination.

## Response `200`

Success

- Export — The data export status definition.
  - `status` string — Indication of the current health and operation of the export or destination.
  - `errors` DataExportError[] — Errors encountered by the export or destination.
    - `code` string — The code for the error that occurred.
    - `message` string — The description of the error that occurred.
  - `lastExportTime` string, date-time — The timestamp of the last message that was sent to the export or destination.

## Other responses

- `default` — An error response received from the IoT Central Service.

---

[API](https://skmtc.net/azure/apis/iotcentral-iotcentral.md) · [All operations](https://skmtc.net/azure/apis/iotcentral-iotcentral/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/iotcentral-iotcentral/versions/565d8813cbd3/schema)
