Spaces

Update Space

Update space

post
/v1/space/{spaceId}/update

Authorization

ChatBotKit API Secret * Required

HTTP Authorization Scheme: bearer

Path Parameters

spaceIdstring* Required

Request Body * Required

Request Body Schema: application/json

aliasstring

The unique alias for the instance

namestring

The associated name

descriptionstring

The associated description

metaobject

Meta data information

blueprintIdstring

The ID of the blueprint

contactIdstring

The contact associated with the space

import { ChatBotKit } from '@chatbotkit/sdk'

const cbk = new ChatBotKit({

secret: process.env.CHATBOTKIT_API_KEY!

})

const response = await cbk.space.update(

spaceId,
{
"alias":"string",
"name":"string",
"description":"string",
"meta":"object",
"blueprintId":"string",
"contactId":"string"
}
)
{
"id":"string"
}
The space was updated successfully