---
title: "Create direct lineage"
method: POST
path: "/lineage/direct"
tags: ["lineage"]
---

# Create direct lineage

`POST /lineage/direct`

Create a direct lineage connection between two assets and returns the created edge

## Request body

- LineageEdge
  - `id` string
  - `job_mrn` string
  - `last_seen_at` string
  - `observation_count` integer
  - `origin` string
  - `source` string
  - `target` string
  - `type` string

## Response `200`

OK

- LineageEdge
  - `id` string
  - `job_mrn` string
  - `last_seen_at` string
  - `observation_count` integer
  - `origin` string
  - `source` string
  - `target` string
  - `type` string

## Other responses

- `400` — Bad Request
- `500` — Internal Server Error

---

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