Update Whats App Integration

Update a WhatsApp integration

post
/v1/integration/whatsapp/{whatsappIntegrationId}/update

Authorization

ChatBotKit API Secret * Required

HTTP Authorization Scheme: bearer

Path Parameters

whatsappIntegrationIdstring* Required

The ID of the WhatsApp integration

Request Body * Required

Request Body Schema: application/json

namestring

The associated name

descriptionstring

The associated description

metaobject

Meta data information

phoneNumberIdstring

The WhatsApp integration phone number ID

accessTokenstring

The WhatsApp integration access token

contactCollectionboolean

Weather to collect contacts

sessionDurationnumber

The session duration (in milliseconds)

attachmentsboolean

Weather the bot supports attachments

botIdstring

The ID of the bot this configuration is using

curl -X POST "https://api.chatbotkit.com/v1/integration/whatsapp/{whatsappIntegrationId}/update" \

-H "Authorization: Bearer $CHATBOTKIT_API_SECRET" \

-H "Content-Type: application/json" \

--data-binary @- << EOF {
"name":"string",
"description":"string",
"meta":"object",
"phoneNumberId":"string",
"accessToken":"string",
"contactCollection":"boolean",
"sessionDuration":"number",
"attachments":"boolean",
"botId":"string"
}
EOF
{
"id":"string"
}
The WhatsApp integration was updated successfully