Blueprint Resourcess
Import Blueprint Resources
Import resources into an existing blueprint
Description
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.
Authorization
ChatBotKit API Secret * Required
HTTP Authorization Scheme: bearer
Path Parameters
blueprintIdstring* Required
Request Body * Required
Request Body Schema: application/json
ensureboolean
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.
resourcesobject
import { ChatBotKit } from '@chatbotkit/sdk'
const cbk = new ChatBotKit({
secret: process.env.CHATBOTKIT_API_KEY!
})
const response = await cbk.blueprint.resource.import(
blueprintId,{)"ensure":"boolean",}"resources":"object"