Partners

Update Partner User

Update a partner user

post
/v1/partner/user/{userId}/update

Authorization

ChatBotKit API Secret * Required

HTTP Authorization Scheme: bearer

Path Parameters

userIdstring* Required

The ID of the partner user

Request Body * Required

Request Body Schema: application/json

namestring

The associated name

descriptionstring

The associated description

metaobject

Meta data information

imagestring

The image of the partner user

emailstring

The email of the partner user

import { ChatBotKit } from '@chatbotkit/sdk'

const cbk = new ChatBotKit({

secret: process.env.CHATBOTKIT_API_KEY!

})

const response = await cbk.partner.user.update(

userId,
{
"name":"string",
"description":"string",
"meta":"object",
"image":"string",
"email":"string"
}
)
{
"id":"string"
}
The message was updated successfully