Replaces all bundle items in the target bundle (specified in the path) with all the bundle items of the source bundle (specified by the from_bundle_sid body param)
Replaces all bundle items in the target bundle (specified in the path) with all the bundle items of the source bundle (specified by the from_bundle_sid body param)
Path parameters
-
The unique string that identifies the Bundle where the item assignments are going to be replaced.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^BU[0-9a-fA-F]{32}$
.
POST
/v2/RegulatoryCompliance/Bundles/{BundleSid}/ReplaceItems
curl \
--request POST 'https://numbers.twilio.com/v2/RegulatoryCompliance/Bundles/{BundleSid}/ReplaceItems' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'FromBundleSid=BUbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb'
Request example
{"FromBundleSid"=>"BUbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"}
Response examples (201)
{
"sid": "BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"email": "email",
"status": "draft",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"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"
}