---
title: "Import resources into an existing blueprint"
method: POST
path: "/blueprint/{blueprintId}/resource/import"
tags: ["Blueprint Resources"]
---

# Import resources into an existing blueprint

`POST /blueprint/{blueprintId}/resource/import`

## Request

- Base URL: `https://api.chatbotkit.com/api/v1`
- URL: `https://api.chatbotkit.com/api/v1/blueprint/{blueprintId}/resource/import`
- Auth: HTTP bearer

Reconciles resources by alias. A resource whose alias already exists in the blueprint is updated in place (credentials are preserved); otherwise it is created. Resources without an alias are always created. Caller-provided ids are used only to wire up references within the payload.

## Path parameters

- `blueprintId` string, required

## Request body

- object
  - `ensure` boolean: When true and the blueprint is addressed by the caller's own @alias, it is created if it does not exist yet (idempotent provision). Ignored for a raw id, which still 404s on miss.
  - `resources` object, required

## Response `200`

Resources were imported successfully

## Other responses

- `default`: An error response

---

[API](https://skmtc.dev/chatbotkit/apis/cbk-api.md) · [All operations](https://skmtc.dev/chatbotkit/apis/cbk-api/llms.txt) · [OpenAPI document](https://skmtc.dev/chatbotkit/apis/cbk-api/revisions/13d250576136?raw)
