Pauses a conversation.
The SID of the task the conversation is linked to.
A promise that resolves when the conversation is successfully paused.
FlexSdkError with the following error code(s):
import { createClient } from "@twilio/flex-sdk";import { PauseConversation } from "@twilio/flex-sdk/actions/Conversation";async function pauseConversation() { const client = await createClient("SDK_TOKEN"); const pauseConversationAction = new PauseConversation("WTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"); await client.execute(pauseConversationAction);} Copy
import { createClient } from "@twilio/flex-sdk";import { PauseConversation } from "@twilio/flex-sdk/actions/Conversation";async function pauseConversation() { const client = await createClient("SDK_TOKEN"); const pauseConversationAction = new PauseConversation("WTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"); await client.execute(pauseConversationAction);}
Pauses a conversation.
Param: taskSid
The SID of the task the conversation is linked to.
Returns
A promise that resolves when the conversation is successfully paused.
Throws
FlexSdkError with the following error code(s):
Example