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
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
Path parameters
-
The unique string that identifies the Bundle to be cloned.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^BU[0-9a-fA-F]{32}$
.
Body
-
The SID of the Account where the bundle needs to be cloned.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^AC[0-9a-fA-F]{32}$
. -
If set to true, the cloned bundle will be in the DRAFT state, else it will be twilio-approved
-
The string that you assigned to describe the cloned bundle.
POST
/v2/RegulatoryCompliance/Bundles/{BundleSid}/Clones
curl \
--request POST 'https://numbers.twilio.com/v2/RegulatoryCompliance/Bundles/{BundleSid}/Clones' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'FriendlyName=friendly_name&TargetAccountSid=ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab'
Request example
{"FriendlyName"=>"friendly_name", "TargetAccountSid"=>"ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab"}
Response examples (201)
{
"url": "https://numbers.twilio.com/v2/RegulatoryCompliance/Bundles/BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab/Clones",
"email": "email",
"status": "twilio-approved",
"bundle_sid": "BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab",
"valid_until": "2015-07-30T20:00:00Z",
"date_created": "2015-07-30T20:00:00Z",
"date_updated": "2015-07-30T20:00:00Z",
"friendly_name": "friendly_name",
"regulation_sid": "RNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"status_callback": "http://www.example.com"
}