@twilio/flex-sdk
    Preparing search index...

    Class CancelVoiceTaskTransfer

    Cancels a voice task transfer.

    The unique identifier (SID) of the task to be transferred.

    A promise that resolves to a Task object, representing the canceled task.

    import { createClient } from "@twilio/flex-sdk";
    import { CancelVoiceTaskTransfer } from "@twilio/flex-sdk/actions/Voice";

    async function cancelVoiceTaskTransfer() {
    const client = await createClient("SDK_TOKEN");
    const cancelVoiceTaskTransfer = new CancelVoiceTaskTransfer("WTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");
    const canceledTask = await client.execute(cancelVoiceTaskTransfer);
    return canceledTask;
    }

    Implements

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Parameters

      • ctx: {}

      Returns Promise<Task>