NAME
Twilio::Rest::Numbers::V2::BundleClone - The BundleClone resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $bundle_clone = $client->numbers->v2->bundle_clone($bundle_sid)->create($target_account_sid, \%options);
DESCRIPTION
This file holds BundleCloneContext and BundleCloneInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
BundleCloneContext
Returned by $client->numbers->v2->bundle_clone($bundle_sid). It makes no request until one of these methods is called.
create
my $bundle_clone = $client->numbers->v2->bundle_clone($bundle_sid)->create($target_account_sid, \%options);
Creates a new clone of the Bundle in target Account. It will internally create clones of all the bundle items (identities and documents) of the original bundle. Returns a BundleCloneInstance.
The required values are:
$target_account_sid-
The SID of the Account where the bundle needs to be cloned.
The options are:
friendly_name-
The string that you assigned to describe the cloned bundle.
move_to_draft-
If set to true, the cloned bundle will be in the DRAFT state, else it will be twilio-approved
BundleCloneInstance
See also Twilio::InstanceResource.
It has create, which work as they do on the context.
Its fields are:
- account_sid
-
The SID of the Account that created the Bundle resource.
- bundle_sid
-
The unique string that we created to identify the Bundle resource.
- 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.
-
The email address that will receive updates when the Bundle resource changes status.
- friendly_name
-
The string that you assigned to describe the resource.
- regulation_sid
-
The unique string of a regulation that is associated to the Bundle resource.
- status
-
One of
draft,pending-review,in-review,twilio-rejected,twilio-approvedorprovisionally-approved. - status_callback
-
The URL we call to inform your application of status changes.
- url
-
The URL of this resource.
- valid_until
-
The date and time in GMT in ISO 8601 format when the resource will be valid until. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
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.