NAME

Twilio::Rest::FlexApi::V1::Interaction::InteractionChannel::InteractionChannelParticipant - The InteractionChannelParticipant resource

SYNOPSIS

my $client = Twilio::Rest::Client->new($account_sid, $auth_token);

my $interaction_channel_participant = $client->flex_api->v1->interaction($interaction_sid)->channels($channel_sid)->participants->create($type, $media_properties, \%options);
for my $interaction_channel_participant ($client->flex_api->v1->interaction($interaction_sid)->channels($channel_sid)->participants->read({}, 20)) {
  ...
}
$client->flex_api->v1->interaction($interaction_sid)->channels($channel_sid)->participants($sid)->update($status);

DESCRIPTION

This file holds InteractionChannelParticipantList, InteractionChannelParticipantPage, InteractionChannelParticipantContext and InteractionChannelParticipantInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

InteractionChannelParticipantList

Returned by $client->flex_api->v1->interaction($interaction_sid)->channels($channel_sid)->participants. See also Twilio::ListResource.

create

my $interaction_channel_participant = $client->flex_api->v1->interaction($interaction_sid)->channels($channel_sid)->participants->create($type, $media_properties, \%options);

Add a Participant to a Channel. Returns a InteractionChannelParticipantInstance.

The required values are:

$type

One of supervisor, customer, external, agent or unknown.

$media_properties

JSON representing the Media Properties for the new Participant. A hash or array reference, or a string of JSON.

The options are:

routing_properties

Object representing the Routing Properties for the new Participant. A hash or array reference, or a string of JSON.

read

my @records = $client->flex_api->v1->interaction($interaction_sid)->channels($channel_sid)->participants->read(\%options, $limit, $page_size);

List all Participants for a Channel. Returns the records as a list, fetching as many pages as it needs.

stream

my $stream = $client->flex_api->v1->interaction($interaction_sid)->channels($channel_sid)->participants->stream(\%options, $limit, $page_size);

Takes the same arguments as "read", and returns a Twilio::Stream.

page

my $page = $client->flex_api->v1->interaction($interaction_sid)->channels($channel_sid)->participants->page(\%options, $page_size, $page_token, $page_number);

Fetches one page, and returns a Twilio::Page.

get_page

my $page = $client->flex_api->v1->interaction($interaction_sid)->channels($channel_sid)->participants->get_page($url);

Fetches the page at a URL given by Twilio.

get_context

my $context = $client->flex_api->v1->interaction($interaction_sid)->channels($channel_sid)->participants->get_context($sid);

Returns a InteractionChannelParticipantContext, and makes no request.

InteractionChannelParticipantPage

A Twilio::Page of InteractionChannelParticipantInstance objects.

records_key

build_instance

Used by Twilio::Page.

InteractionChannelParticipantContext

Returned by $client->flex_api->v1->interaction($interaction_sid)->channels($channel_sid)->participants($sid). It makes no request until one of these methods is called.

update

my $interaction_channel_participant = $client->flex_api->v1->interaction($interaction_sid)->channels($channel_sid)->participants($sid)->update($status);

Update an existing Channel Participant. Returns a InteractionChannelParticipantInstance.

The required values are:

$status

One of closed or wrapup.

InteractionChannelParticipantInstance

See also Twilio::InstanceResource.

It has update, which work as they do on the context.

Its fields are:

channel_sid

The Channel Sid for this Participant.

interaction_sid

The Interaction Sid for this channel.

routing_properties

The Participant's routing properties.

sid

The unique string created by Twilio to identify an Interaction Channel Participant resource.

type

One of supervisor, customer, external, agent or unknown.

url

No description in the specification.

CONSTRUCTORS

new

Objects here come from the methods above, so there is no need to call new directly.

LICENSE

Copyright (c) 2026 Francisco Zarabozo. Released under the MIT License.