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

    Class SetWorkerAttributes

    Sets attributes for a worker.

    The unique identifier (SID) of the worker to set attributes for.

    An object containing the 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 for the worker.

    import { createClient } from "@twilio/flex-sdk";
    import { SetWorkerAttributes } from "@twilio/flex-sdk/actions/Supervisor";

    async function setWorkerAttributes() {
    const client = await createClient("SDK_TOKEN");
    const setWorkerAttributesAction = new SetWorkerAttributes(
    "WKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
    { key: "value" }
    );
    await client.execute(setWorkerAttributesAction);
    }

    Implements

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Parameters

      • ctx: {}

      Returns Promise<void>