Tasks

Update Task

Update task

post
/v1/task/{taskId}/update

Authorization

ChatBotKit API Secret * Required

HTTP Authorization Scheme: bearer

Path Parameters

taskIdstring* Required

Request Body * Required

Request Body Schema: application/json

namestring

The associated name

descriptionstring

The associated description

metaobject

Meta data information

contactIdstring

The contact associated with the task

botIdstring

The bot associated with the task

schedulestring

The schedule of the task

import { ChatBotKit } from '@chatbotkit/sdk'

const cbk = new ChatBotKit({

secret: process.env.CHATBOTKIT_API_KEY!

})

const response = await cbk.task.update(

taskId,
{
"name":"string",
"description":"string",
"meta":"object",
"contactId":"string",
"botId":"string",
"schedule":"string"
}
)
{
"id":"string"
}
The task was updated successfully