Update a connect-app with the specified parameters
Twilio Connect apps
Update a connect-app with the specified parameters
Path parameters
-
The SID of the Account that created the ConnectApp resources to update.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^AC[0-9a-fA-F]{32}$
. -
The Twilio-provided string that uniquely identifies the ConnectApp resource to update.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^CN[0-9a-fA-F]{32}$
.
Body
-
The company name to set for the Connect App.
-
A description of the Connect App.
-
A descriptive string that you create to describe the resource. It can be up to 64 characters long.
-
A public URL where users can obtain more information about this Connect App.
-
A comma-separated list of the permissions you will request from the users of this ConnectApp. Can include:
get-all
andpost-all
.Values are
get-all
orpost-all
.
curl \
--request POST 'https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/ConnectApps/{Sid}.json' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'CompanyName=company_name&Description=description&HomepageUrl=https%3A%2F%2Fexample.com&Permissions=get-all&FriendlyName=friendly_name&AuthorizeRedirectUrl=https%3A%2F%2Fexample.com&DeauthorizeCallbackUrl=https%3A%2F%2Fexample.com&DeauthorizeCallbackMethod=GET'
{"CompanyName"=>"company_name", "Description"=>"description", "HomepageUrl"=>"https://example.com", "Permissions"=>["get-all"], "FriendlyName"=>"friendly_name", "AuthorizeRedirectUrl"=>"https://example.com", "DeauthorizeCallbackUrl"=>"https://example.com", "DeauthorizeCallbackMethod"=>"GET"}
{
"sid": "CNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/ConnectApps/CNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"description": null,
"permissions": [],
"company_name": "Twilio",
"homepage_url": "http://example.com/home",
"friendly_name": "Connect app for deletion",
"authorize_redirect_url": "http://example.com/redirect",
"deauthorize_callback_url": "http://example.com/deauth",
"deauthorize_callback_method": "GET"
}