NAME
Twilio::Rest::Accounts::V1::AuthTokenPromotion - The AuthTokenPromotion resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
$client->accounts->v1->auth_token_promotion->update(\%options);
DESCRIPTION
Auth Token promotion
This file holds AuthTokenPromotionContext and AuthTokenPromotionInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
AuthTokenPromotionContext
Returned by $client->accounts->v1->auth_token_promotion. It makes no request until one of these methods is called.
update
my $auth_token_promotion = $client->accounts->v1->auth_token_promotion->update(\%options);
Promote the secondary Auth Token to primary. After promoting the new token, all requests to Twilio using your old primary Auth Token will result in an error. Returns a AuthTokenPromotionInstance.
The options are:
suppress_email_notification-
Whether to suppress the email notification that Twilio sends to the owners and administrators of the account about this Auth Token change. Defaults to
false, so Twilio sends the email. Set totruewhen rotating Auth Tokens across many subaccounts.
AuthTokenPromotionInstance
See also Twilio::InstanceResource.
It has update, which work as they do on the context.
Its fields are:
- account_sid
-
The SID of the Account that the secondary Auth Token was created for.
- auth_token
-
The promoted Auth Token that must be used to authenticate future API requests.
- date_created
-
The date and time in UTC 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.
- url
-
The URI for this resource, relative to
https://accounts.twilio.com
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.