---
title: "Batch create lineage edges"
method: POST
path: "/api/v1/lineage/batch"
tags: ["lineage"]
---

# Batch create lineage edges

`POST /api/v1/lineage/batch`

Create lineage edges in batch

## 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

- BatchLineageResult[]
  - `edge` LineageEdge
    - `id` string
    - `job_mrn` string
    - `last_seen_at` string
    - `observation_count` integer
    - `origin` string
    - `source` string
    - `target` string
    - `type` string
  - `status` string — "created", "duplicate", or "existing"

## Other responses

- `400` — Bad Request

## Changes

> 56 revisions in range; 1 not diffed.

- **2026-08-24** `0bd802afff21` — 2 info
  - the endpoint scheme security `ApiKeyAuth` was added to the API
  - the endpoint scheme security `BearerAuth` was added to the API

[Change history](https://skmtc.dev/marmotdata/apis/marmot-api/changes/api/v1/lineage/batch/post.md)

---

[API](https://skmtc.dev/marmotdata/apis/marmot-api.md) · [All operations](https://skmtc.dev/marmotdata/apis/marmot-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/marmotdata/marmot-api/revisions/0bd802afff21/schema)
