Skip to content

Instantly share code, notes, and snippets.

@bhatti
Last active November 2, 2022 18:25
Show Gist options
  • Select an option

  • Save bhatti/6a55924796825385c0a58b84f309ecd1 to your computer and use it in GitHub Desktop.

Select an option

Save bhatti/6a55924796825385c0a58b84f309ecd1 to your computer and use it in GitHub Desktop.
name: UpdateAuthTokenPromotion-xx
path: /v1/AuthTokens/Promote
description: 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.
request:
match_query_params: {}
match_headers: {}
match_content_type: ""
match_contents: ""
example_path_params: {}
example_query_params: {}
example_headers: {}
example_contents: ""
response:
headers: {}
content_type: application/json
contents: '{"account_sid":"{{RandRegex `^AC[0-9a-fA-F]{32}$`}}",\
"auth_token":"{{RandStringMinMax 0 0}}","date_created":"{{Time}}",\
"date_updated":"{{Time}}","url":"https://{{RandName}}.com"}'
contents_file: ""
status_code: 200
wait_before_reply: 0s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment