---
title: "Update data-export destination selection"
method: PATCH
path: "/api/v1/data-export/destinations/{destinationId}"
tags: ["Data Export"]
---

# Update data-export destination selection

`PATCH /api/v1/data-export/destinations/{destinationId}`

Update a destination's entity selection. Pushes the new enabled_models to the provider first, then persists the selection. Applies on the next scheduled transfer.

## Path parameters

- `destinationId` string, required

## Headers

- `X-ACCOUNT-ID` string
- `X-ENVIRONMENT-ID` string

## Request body

- UpdateDataExportDestinationSelectionRequestDto — Update a destination's entity selection and push it to the provider.
  - `integrationId` string, required — Target integration row hosting the destination
  - `enabledModels` string[], required

## Response `200`

Current list of destinations under the DATA_EXPORT integration.

- DataExportDestinationListResponseDto — Response object
  - `data` object, required — Current destinations under the DATA_EXPORT integration.
    - `destinations` object[], required — Current destinations under the DATA_EXPORT integration
      - `type` string, required — Destination type (snowflake, bigquery, ...)
      - `connectedAt` string, required — ISO8601 timestamp of when the destination was connected
      - `destinationId` string, required — Provider destination ID
      - `connectionStatus` string — Connection status of the destination (connected, failed)
      - `lastSyncStatus` object — Latest sync snapshot for the destination, refreshed by the provider webhook
        - `transferId` string, required — Provider transfer ID of the latest sync
        - `status` string, required — Sync status (PENDING, RUNNING, INCOMPLETE, FAILED, SUCCEEDED, CANCELLED)
        - `finishedAt` string, required — ISO8601 timestamp of when the latest sync finished
        - `rowsTransferred` number — Number of rows transferred in the latest sync
        - `blamedParty` string — Party responsible for a failed sync, as reported by the data-export provider
        - `failureMessage` string — Customer-friendly failure message, when the latest sync failed
      - `enabledModels` string[]

## Other responses

- `400` — bad request.
- `401` — User is not authenticated.
- `403` — User is not allowed to access this resource.
- `404` — DataExport not found.
- `429` — Too many requests.

---

[API](https://skmtc.net/stiggio/apis/stigg-api.md) · [All operations](https://skmtc.net/stiggio/apis/stigg-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/stiggio/stigg-api/versions/ffc977f1c07e/schema)
