---
title: "Create a data link"
method: POST
path: "/data-link-tables/{idOrKey}/links"
tags: ["DataLinkTables"]
---

# Create a data link

`POST /data-link-tables/{idOrKey}/links`

## Path parameters

- `idOrKey` string, required

## Query parameters

- `id` string
- `integrationKey` string
- `integrationId` string
- `connectionId` string
- `connectionKey` string
- `instanceKey` string
- `dataLinkTableId` string
- `dataLinkTableKey` string
- `autoCreate` boolean
- `direction` 'import' | 'export' | 'both'
- `appRecordId` string
- `externalRecordId` string
- `limit` integer
- `cursor` string

## Request body

- CreateDataLinkDto
  - `direction` 'import' | 'export' | 'both', required
  - `appRecordId` string, required
  - `externalRecordId` string, required

## Response `204`

Data link created successfully

---

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