Removes a participant from hold status in a task.
The unique identifier (SID) of the participant to be unheld. Can be either a worker SID or participant SID.
The unique identifier (SID) of the task to unhold the participant in.
A promise that resolves when the participant is successfully unheld.
FlexSdkError with the following error code(s):
import { createClient } from "@twilio/flex-sdk";import { UnholdVoiceParticipant } from "@twilio/flex-sdk/actions/Voice";async function unholdParticipant() { const client = await createClient("SDK_TOKEN"); const unholdVoiceParticipant = new UnholdVoiceParticipant("WKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "WTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"); await client.execute(unholdVoiceParticipant);} Copy
import { createClient } from "@twilio/flex-sdk";import { UnholdVoiceParticipant } from "@twilio/flex-sdk/actions/Voice";async function unholdParticipant() { const client = await createClient("SDK_TOKEN"); const unholdVoiceParticipant = new UnholdVoiceParticipant("WKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "WTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"); await client.execute(unholdVoiceParticipant);}
Removes a participant from hold status in a task.
Param: targetParticipantSid
The unique identifier (SID) of the participant to be unheld. Can be either a worker SID or participant SID.
Param: taskSid
The unique identifier (SID) of the task to unhold the participant in.
Returns
A promise that resolves when the participant is successfully unheld.
Throws
FlexSdkError with the following error code(s):
Example