---
title: "Merge workbooks into a target"
method: POST
path: "/external/v1/workbooks/merge"
tags: ["Workbook"]
---

# Merge workbooks into a target

`POST /external/v1/workbooks/merge`

## Request

- Base URL: `https://api.databar.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.databar.ai/external/v1/workbooks/merge`
- Auth: API key in header `x-apikey`

## Request body

- MergeWorkbooksIn
  - `target` string, required: Workbook identifier that keeps the sheets.
  - `sources` string[], required: Workbook identifiers to fold into target.

## Response `200`

OK

- WorkbookOut
  - `identifier` string, required
  - `name` string, required
  - `created_at` string, required
  - `updated_at` string, required
  - `folder_id` integer, nullable
  - `tables` WorkbookTableOut[]
    - `identifier` string, required
    - `name` string, required
    - `position` integer, required
  - `tables_count` integer

---

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