Blueprint Resourcess

Export Blueprint Resources

Export blueprint resources

get
/v1/blueprint/{blueprintId}/resource/export

Description

Export a blueprint and all its resources. The default format is JSON. Set the Accept header to application/terraform+hcl to export as Terraform HCL code.

Authorization

ChatBotKit API Secret * Required

HTTP Authorization Scheme: bearer

Path Parameters

blueprintIdstring* Required

The ID of the blueprint to export

Acceptstring

The desired export format

import { ChatBotKit } from '@chatbotkit/sdk'

const cbk = new ChatBotKit({

secret: process.env.CHATBOTKIT_API_KEY!

})

const response = await cbk.blueprint.resource.export(

blueprintId
)
{
"id":"string",
"name":"string",
"description":"string",
"resources":"object"
}
The blueprint was exported successfully