NAME

Twilio::Rest::Video::V1::Room::Participant::SubscribeRules - The SubscribeRules resource

SYNOPSIS

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

my $subscribe_rules = $client->video->v1->rooms($room_sid)->participants($participant_sid)->subscribe_rules->fetch;
my $subscribe_rules = $client->video->v1->rooms($room_sid)->participants($participant_sid)->subscribe_rules->update(\%options);

DESCRIPTION

This file holds SubscribeRulesList and SubscribeRulesInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

SubscribeRulesList

Returned by $client->video->v1->rooms($room_sid)->participants($participant_sid)->subscribe_rules. See also Twilio::ListResource.

fetch

my $subscribe_rules = $client->video->v1->rooms($room_sid)->participants($participant_sid)->subscribe_rules->fetch;

Returns a list of Subscribe Rules for the Participant. Returns a SubscribeRulesInstance.

update

my $subscribe_rules = $client->video->v1->rooms($room_sid)->participants($participant_sid)->subscribe_rules->update(\%options);

Update the Subscribe Rules for the Participant. Returns a SubscribeRulesInstance.

The options are:

rules

A JSON-encoded array of subscribe rules. See the Specifying Subscribe Rules section for further information. A hash or array reference, or a string of JSON.

SubscribeRulesInstance

See also Twilio::InstanceResource.

Its fields are:

date_created

The date and time in GMT when the resource was created specified in ISO 8601 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

date_updated

The date and time in GMT when the resource was last updated specified in ISO 8601 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

participant_sid

The SID of the Participant resource for the Subscribe Rules.

room_sid

The SID of the Room resource for the Subscribe Rules

rules

A collection of Subscribe Rules that describe how to include or exclude matching tracks. See the Specifying Subscribe Rules section for further information.

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.