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

    Sets attributes for the worker.

    An object containing attributes to set for the worker.

    Optional configuration parameters for customizing the attribute setting process.

    A promise that resolves when the attributes are successfully set.

    import { createClient } from "@twilio/flex-sdk";
    import { SetAttributes } from "@twilio/flex-sdk/actions/Worker";

    async function setWorkerAttributes() {
    const client = await createClient("SDK_TOKEN");
    const setAttributesAction = new SetAttributes({ key: "value" });
    await client.execute(setAttributesAction);
    }

    Implements

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Parameters

      • ctx: {}

      Returns Promise<void>