NAME
Twilio::Rest::FlexApi::V2::FlexUser - The FlexUser resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $flex_user = $client->flex_api->v2->flex_user($instance_sid, $flex_user_sid)->fetch;
$client->flex_api->v2->flex_user($instance_sid, $flex_user_sid)->update(\%options);
DESCRIPTION
This file holds FlexUserList, FlexUserContext and FlexUserInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
FlexUserList
Returned by $client->flex_api->v2->flex_user($instance_sid). See also Twilio::ListResource.
get_context
my $context = $client->flex_api->v2->flex_user($instance_sid)->get_context($flex_user_sid);
Returns a FlexUserContext, and makes no request.
FlexUserContext
Returned by $client->flex_api->v2->flex_user($instance_sid, $flex_user_sid). It makes no request until one of these methods is called.
fetch
my $flex_user = $client->flex_api->v2->flex_user($instance_sid, $flex_user_sid)->fetch;
Fetch flex user for the given flex user sid. Returns a FlexUserInstance.
update
my $flex_user = $client->flex_api->v2->flex_user($instance_sid, $flex_user_sid)->update(\%options);
Update flex user for the given flex user sid. Returns a FlexUserInstance.
The options are:
email-
Email of the User.
locale-
The locale preference of the user.
user_sid-
The unique SID identifier of the Twilio Unified User.
FlexUserInstance
See also Twilio::InstanceResource.
It has fetch and update, which work as they do on the context.
Its fields are:
- account_sid
-
The unique SID of the account that created the resource.
- created_date
-
The date that this user was created, given in ISO 8601 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
-
Email of the User.
- flex_team_sid
-
The unique SID identifier of the Flex Team.
- flex_user_sid
-
The unique SID identifier of the Flex User.
- instance_sid
-
The unique ID created by Twilio to identify a Flex instance.
- locale
-
The locale preference of the user.
- roles
-
The roles of the user.
- updated_date
-
The date that this user was updated, given in ISO 8601 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- url
-
No description in the specification.
- user_sid
-
The unique SID identifier of the Twilio Unified User.
- username
-
Username of the User.
- version
-
The current version of the user.
- worker_sid
-
The unique SID identifier of the worker.
- workspace_sid
-
The unique SID identifier of the workspace.
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.