---
title: "Link a fork to its upstream"
method: POST
path: "/connector/{slug}/link-upstream"
tags: ["Custom connectors"]
---

# Link a fork to its upstream

`POST /connector/{slug}/link-upstream`

## Request

- Base URL: `https://api.elaichi.ai`
- URL: `https://api.elaichi.ai/connector/{slug}/link-upstream`
- Auth: HTTP bearer

Points an older fork at an upstream connector so it can use the pull workflow. New forks are linked automatically; re-linking an already-linked connector answers 409.

## Path parameters

- `slug` string, required

## Headers

- `X-Organization-Id` string

## Request body

- object
  - `upstream_slug` string, required: Catalog connector to track.

## Response `200`

OK

- object

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `429`: Rate limited

---

[API](https://skmtc.dev/elaichi/apis/elaichi-api.md) · [All operations](https://skmtc.dev/elaichi/apis/elaichi-api/llms.txt) · [OpenAPI document](https://skmtc.dev/elaichi/apis/elaichi-api/revisions/b22cfb7b6d15?raw)
