UpdateApplication
Modifies the configuration information 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 application permission scopes. For the valid values and descriptions of application permission scopes, see OAuth scopes. You can also call the ListPredefinedScopes operation to obtain the application permission scopes supported by different application types. Separate multiple scopes with semicolons (;). The new scopes overwrite the original scopes. For example, if the original scope is /acs/ccc and the new scope is /acs/alidns, the effective scope is /acs/alidns. To add /acs/alidns to the original scopes, set the new scopes to /acs/ccc;/acs/alidns. |
openid |
| NewRequiredScopes |
string |
No |
The required application permission scopes. You can set one or more scopes in RequiredScopes as required. After a scope is set as required, it is selected by default and cannot be deselected when a user authorizes the application. If you also specify NewPredefinedScopes, the scope list of the application is reset by using NewPredefinedScopes first, and then this parameter is used to specify whether the scopes are required. Separate multiple scopes with semicolons (;). The new required scopes overwrite the original required scopes. Note
If a scope specified in RequiredScopes is not included in PredefinedScopes, the required setting for this scope does not take effect. |
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 can be installed by other accounts. Valid values:
|
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| Application |
object |
The application information. |
|
| AccessTokenValidity |
integer |
The validity period of the access token. Unit: seconds. |
3600 |
| AccountId |
string |
The Alibaba Cloud account ID to which the application belongs. |
177242285274**** |
| AppId |
string |
The application ID. |
472457090344041**** |
| AppName |
string |
The application name. |
myapp |
| AppType |
string |
The application type. |
WebApp |
| AssignmentType |
string |
The application assignment type. Valid values:
|
AlloAll |
| CreateDate |
string |
The creation time. Format: RFC 3339 (UTC). Example: 2020-10-23T08:06:57Z. |
2020-10-23T08:06:57Z |
| DelegatedScope |
object |
The application permission scope information. |
|
| PredefinedScopes |
object |
||
| PredefinedScope |
array<object> |
The application permission scope information. |
|
|
object |
The application permission scope information. |
||
| Description |
string |
The scope description. |
Obtain the OpenID of the user. This is the default permission that you cannot remove. |
| Name |
string |
The scope name. |
openid |
| Required |
boolean |
Specifies whether this permission scope is required by default when the application is installed. Valid values:
The |
true |
| DisplayName |
string |
The display name of the application. |
NewApp |
| IsMultiTenant |
boolean |
Indicates whether the application can be installed by other accounts. |
true |
| NeedPrincipalConsent |
boolean |
Specifies whether user authorization is required. Valid values:
|
true |
| ProtocolVersion |
string |
The OAuth protocol version of the application. Valid values:
|
2.0 |
| RedirectUris |
object |
||
| RedirectUri |
array |
The callback URL. |
|
|
string |
The callback URL. |
https://www.example.com |
|
| RefreshTokenValidity |
integer |
The validity period of the refresh token. Unit: seconds. |
7776000 |
| SecretRequired |
boolean |
Indicates whether an application secret is required. |
true |
| UpdateDate |
string |
The update time. Format: RFC 3339 (UTC). Example: 2020-10-23T08:06:57Z. |
2020-10-23T08:06:57Z |
| RequestId |
string |
The request ID. |
6616F09B-2768-4C11-8866-A8EE4C4A583E |
Examples
Success response
JSON format
{
"Application": {
"AccessTokenValidity": 3600,
"AccountId": "177242285274****",
"AppId": "472457090344041****",
"AppName": "myapp",
"AppType": "WebApp",
"AssignmentType": "AlloAll",
"CreateDate": "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
}
]
}
},
"DisplayName": "NewApp",
"IsMultiTenant": true,
"NeedPrincipalConsent": true,
"ProtocolVersion": "2.0",
"RedirectUris": {
"RedirectUri": [
"https://www.example.com"
]
},
"RefreshTokenValidity": 7776000,
"SecretRequired": true,
"UpdateDate": "2020-10-23T08:06:57Z"
},
"RequestId": "6616F09B-2768-4C11-8866-A8EE4C4A583E"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.