---
title: "Upload Manifest"
method: POST
path: "/api/v1/assets/{asset_id}/lineage/upload"
tags: ["lineage-upload"]
---

# Upload Manifest

`POST /api/v1/assets/{asset_id}/lineage/upload`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/api/v1/assets/{asset_id}/lineage/upload`
- Auth: none declared

Upload DBT manifest.json file to sync lineage data.

This endpoint accepts a manifest.json file (from `dbt docs generate` or
`dbt compile`), parses it, and syncs all lineage data to the database.

Optionally triggers a targeted asset refresh to sync DBT models to the catalog.

Args:
    asset_id: Asset UUID
    ctx: Application context with user and session
    file: Uploaded manifest.json file
    sync_to_catalog: Whether to sync DBT models to asset catalog (default: True)
    workflow_service: Workflow service for job submission

Returns:
    StandardResponse with sync statistics

## Path parameters

- `asset_id` string, uuid, required

## Query parameters

- `sync_to_catalog` boolean

## Headers

- `Authorization` string

## Response `200`

Successful Response

- StandardResponse: Standard API response wrapper.
  - `success` boolean, required
  - `data` unknown
  - `message` string, nullable
  - `error` string, nullable
  - `meta` object, nullable

## Other responses

- `422`: Validation Error

---

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