Skip to content

Instantly share code, notes, and snippets.

@eeeschwartz
Last active August 29, 2015 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eeeschwartz/d900f6bee413ceaa09b8 to your computer and use it in GitHub Desktop.
Save eeeschwartz/d900f6bee413ceaa09b8 to your computer and use it in GitHub Desktop.
Migrate number to citygram subaccount from another subaccount
other_subaccount_sid=
other_phone_sid=
citygram_subaccount_sid=
master_account_sid=
master_account_auth_token=
curl -XPOST "https://api.twilio.com/2010-04-01/Accounts/$other_subaccount_sid.json" \
-d "Status=closed" \
-u "$master_account_sid:$master_account_auth_token"
other_subaccount_sid=
other_phone_sid=
citygram_subaccount_sid=
master_account_sid=
master_account_auth_token=
curl -XPOST "https://api.twilio.com/2010-04-01/Accounts/$other_subaccount_sid/IncomingPhoneNumbers/$other_phone_sid.json" \
-d "AccountSid=$citygram_subaccount_sid" \
-u "$master_account_sid:$master_account_auth_token"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment