Blueprints
Delete Blueprint
Delete a blueprint
post
/v1/blueprint/{blueprintId}/delete
Authorization
ChatBotKit API Secret * Required
HTTP Authorization Scheme: bearer
Path Parameters
blueprintIdstring* Required
The ID of the blueprint to delete
Request Body * Required
Request Body Schema: application/json
deleteResourcesboolean
If true, deletes all resources associated with the blueprint. If false or omitted, only the blueprint is deleted.
import { ChatBotKit } from '@chatbotkit/sdk'
const cbk = new ChatBotKit({
secret: process.env.CHATBOTKIT_API_KEY!
})
const response = await cbk.blueprint.delete(
blueprintId,{)}"deleteResources":"boolean"
{"id":"string"}The blueprint was deleted successfully