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

# Batch create assets

`POST /api/v1/runs/assets/batch`

Create/update assets within a run

## Request body

- BatchCreateRequest
  - `assets` RunCreateAssetRequest[], required
    - `description` string
    - `external_links` object[]
    - `metadata` object
    - `name` string
    - `providers` string[]
    - `schema` object
    - `sources` AssetSource[]
      - `last_sync_at` string
      - `name` string
      - `priority` integer
      - `properties` object
    - `tags` string[]
    - `terms` string[] — Terms are the names of glossary terms assigned to this asset.
    - `type` string
  - `config` RawPluginConfig
  - `documentation` CreateDocRequest[]
    - `asset_mrn` string
    - `content` string
    - `type` string
  - `glossary_terms` CreateGlossaryTermRequest[]
    - `definition` string
    - `description` string
    - `metadata` object
    - `name` string
    - `parent` string
    - `synonyms` string[]
    - `tags` string[]
  - `lineage` CreateLineageRequest[]
    - `job_mrn` string
    - `source` string
    - `target` string
    - `type` string
  - `pipeline_name` string, required
  - `run_history` CreateRunHistoryRequest[]
    - `asset_mrn` string
    - `event_time` string
    - `event_type` string
    - `job_facets` object
    - `job_name` string
    - `job_namespace` string
    - `run_facets` object
    - `run_id` string
  - `run_id` string, required
  - `source_name` string, required
  - `statistics` CreateStatRequest[]
    - `asset_mrn` string, required
    - `metric_name` string, required
    - `value` number, required

## Response `200`

OK

- BatchCreateResponse
  - `assets` BatchAssetResult[]
    - `asset` unknown
    - `error` string
    - `mrn` string
    - `name` string
    - `provider` string
    - `status` string
    - `type` string
  - `documentation` DocumentationResult[]
    - `asset_mrn` string
    - `error` string
    - `status` string
    - `type` string
  - `lineage` LineageResult[]
    - `error` string
    - `source` string
    - `status` string
    - `target` string
    - `type` string
  - `stale_entities_removed` string[]

## 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/runs/assets/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)
