Modifies the configuration of a specified application.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ram:UpdateApplication |
update |
*Application
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AppId |
string |
Yes |
The application ID. |
472457090344041**** |
| NewDisplayName |
string |
No |
The display name. |
NewApp |
| NewRedirectUris |
string |
No |
The callback URLs. Separate multiple URLs with semicolons (;). |
https://www.example.com |
| NewPredefinedScopes |
string |
No |
The permission scope of the application. For more information about the valid values and descriptions of application permission scopes, see OAuth scopes. You can also call ListPredefinedScopes to query the permission scopes supported by different application types. Separate multiple permission scopes with semicolons (;). The new permission scopes overwrite the existing permission scopes. For example, if the existing permission scope is |
openid |
| NewRequiredScopes |
string |
No |
The required permission scopes of the application. You can set one or more scopes in If you also specify Separate multiple permission scopes with semicolons (;). The new required scopes overwrite the existing required scopes. Note
If a scope specified in |
profile;aliuid |
| NewSecretRequired |
boolean |
No |
Specifies whether an application secret is required. Valid values:
Note
|
true |
| NewAccessTokenValidity |
integer |
No |
The validity period of the access token. Valid values: 900 to 10800. Unit: seconds. |
3600 |
| NewRefreshTokenValidity |
integer |
No |
The validity period of the refresh token. Valid values: 7200 to 31536000. Unit: seconds. |
7776000 |
| NewIsMultiTenant |
boolean |
No |
Specifies whether the application is allowed to be installed by other accounts. Valid values:
|
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
6616F09B-2768-4C11-8866-A8EE4C4A583E |
| Application |
object |
The application information. |
|
| DisplayName |
string |
The display name of the application. |
NewApp |
| AccessTokenValidity |
integer |
The validity period of the access token. Unit: seconds. |
3600 |
| SecretRequired |
boolean |
Indicates whether an application secret is required. |
true |
| AccountId |
string |
The Alibaba Cloud account ID to which the application belongs. |
177242285274**** |
| CreateDate |
string |
The creation time. Format: RFC 3339 (UTC). Example: 2020-10-23T08:06:57Z. |
2020-10-23T08:06:57Z |
| AppName |
string |
The application name. |
myapp |
| RedirectUris |
object |
||
| RedirectUri |
array |
The redirect URL. |
|
|
string |
The redirect URL. |
https://www.example.com |
|
| UpdateDate |
string |
The update time. Format: RFC 3339 (UTC). Example: 2020-10-23T08:06:57Z. |
2020-10-23T08:06:57Z |
| DelegatedScope |
object |
The permission scope information of the application. |
|
| PredefinedScopes |
object |
The information about the permissions that are granted on the application. |
|
| PredefinedScope |
array<object> |
The information about the permissions that are granted on the application. |
|
|
object |
The information about the permissions that are granted on the application. |
||
| Description |
string |
The description of the permission. |
Obtain the OpenID of the user. This is the default permission that you cannot remove. |
| Name |
string |
The name of the permission. |
openid |
| Required |
boolean |
Indicates whether the permission is automatically selected by default when you install the application. Valid values:
|
true |
| AppId |
string |
The application ID. |
472457090344041**** |
| RefreshTokenValidity |
integer |
The validity period of the refresh token. Unit: seconds. |
7776000 |
| IsMultiTenant |
boolean |
Indicates whether the application is allowed to be installed by other accounts. |
true |
| AppType |
string |
The application type. |
WebApp |
| ProtocolVersion |
string |
The OAuth protocol version of the application. Valid values:
|
2.0 |
Examples
Success response
JSON format
{
"RequestId": "6616F09B-2768-4C11-8866-A8EE4C4A583E",
"Application": {
"DisplayName": "NewApp",
"AccessTokenValidity": 3600,
"SecretRequired": true,
"AccountId": "177242285274****",
"CreateDate": "2020-10-23T08:06:57Z",
"AppName": "myapp",
"RedirectUris": {
"RedirectUri": [
"https://www.example.com"
]
},
"UpdateDate": "2020-10-23T08:06:57Z",
"DelegatedScope": {
"PredefinedScopes": {
"PredefinedScope": [
{
"Description": "Obtain the OpenID of the user. This is the default permission that you cannot remove.",
"Name": "openid",
"Required": true
}
]
}
},
"AppId": "472457090344041****",
"RefreshTokenValidity": 7776000,
"IsMultiTenant": true,
"AppType": "WebApp",
"ProtocolVersion": "2.0"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.