Widget Integrations

Detach Widget Integration File

Detach a file from a widget integration

post
/v1/integration/widget/{widgetIntegrationId}/file/{fileId}/detach

Authorization

ChatBotKit API Secret * Required

HTTP Authorization Scheme: bearer

Path Parameters

widgetIntegrationIdstring* Required

The ID of the widget integration

fileIdstring* Required

The ID of the file to detach

import { ChatBotKit } from '@chatbotkit/sdk'

const cbk = new ChatBotKit({

secret: process.env.CHATBOTKIT_API_KEY!

})

const response = await cbk.integration.widget.file.detach(

widgetIntegrationId, fileId
)
{
"id":"string",
"type":"string",
"widgetIntegrationId":"string"
}
The file was detached from the widget integration successfully