Skip to main content

Update App

Use Update App API, to update the app through keycloak, which has already been created using Create App.

Resource Informations

NameValue
Requires authentication?Yes
Rate limited?No

Request

Request headers

KeyValue
AuthorizationBearer token
Content-Typeapplication/json

HTTP request URL for SSMS

PUT https://{tenantId}.{hostname}/digitanium/v4/apps

HTTP request URL for SHIFT

PUT https://{hostname}/auth/realms/{tenantId}/v3_client/
note

API requests must be made over https. Calls made over plain http will fail.

Parameters

No parameter fields are required.

Request body(* Required)

Field NameTypeDescription
*appNameStringThe name of the app to be updated
idStringThis is a unique auto-generated id
nameStringDisplay name of the client
descriptionStringThe description of the app to be updated
rootUrlStringThe root URL is known to be the entire URL, including a slash.(Example: http://www.testapp.com/)
adminUrlStringURL to the client's admin interface. The admin url template tag retrieves the url with the required protocol from the admin field of the current domain
baseUrlStringA consistent part or root of the address of your website (Example: http://www.demotest.com)
surrogateAuthRequiredbooleanWhether or not it is required to substitute auth
enabledbooleanIs this enabled or not?
appAuthenticatorTypeStringType of Two-factor verification to sign-in to your accounts
secretStringYou may define a secret here when using the norm (otherwise one will be generated if it does not exit)
registrationAccessTokenStringThe registration authorization token offers access to the client registration service for clients
defaultRolesStringA list of this client's default roles. If the client functions referenced are not included, And if they already exist, they can be created.
redirectUrisList(String)Appropriate URIs for this client for redirection.
webOriginsList(String)List of allowed origins.
notBeforeIntegerRevoke all tokens for this client given previous to this date (this is a UNIX timestamp).
bearerOnlybooleanThis client's access form is bearer-only.
consentRequiredbooleanUsers have to agree to client access if allowed.
standardFlowEnabledbooleanEnable or not to enable standard flow for this client.
implicitFlowEnabledbooleanEnable or not to enable implicit flow for this client.
directAccessGrantsEnabledbooleanEnable or not to enable directAccessGrants for this client.
serviceAccountsEnabledbooleanEnable or not to enable serviceAccounts for this client.
authorizationServicesEnabledbooleanEnable or not to enable authorizationServices for this client.
directGrantsOnlybooleanEnable or not to enable directGrantsOnly for this client.
publicAppbooleanIs the access type for this app is public or not?
frontchannelLogoutbooleanFor this client, frontchannel logout is or is not enabled.
protocolStringIt defines the protocol for which this protocol mapper is involved.
attributesMap(String,String)Based on the user requirement the user attributes can be updated. User can add any customized attribute in form of key value pair.
authenticationFlowBindingOverridesMap(String,String)Describe the bug Configuring authenticationFlowBindingOverrides for a client appears not to be feasible.
fullScopeAllowedbooleanWhether or not the "Full Scope Allowed" function is set for this client.
nodeReRegistrationTimeoutIntegerCluster node timeout for this client's re-registration.
registeredNodesMap(String,String)Registered cluster node dictation with (nodename) as the key and the (last time of registration) as the value.
protocolMappersList(ProtocolMapperRepresentation)A list of client that describe protocol mappers.
appTemplateStringThe template is a specialized version of the App Template client.
useTemplateConfigbooleanWhether or not to use the (client_template) configuration
useTemplateScopebooleanWhether or not to use the (client template) scope setup
useTemplateMappersbooleanWhether or not to use the (client-template) mapper setup
defaultClientScopesList(String)A list of default client scopes.
optionalClientScopesList(String)A list of optionalClientScopes.
authorizationSettingsResourceServerRepresentationA data framework that determines this client's authorization settings.
accessMap(String,Boolean)A list of access type.
originStringList of allowed origins.

Response

Field NameTypeDescription
messageStringMessage explains result of the API call. Refer Response status Information for details.
statusStringThe status of the API call. Refer Response status Information for details.
subSystemIntegersubSystem categorizes the type of API that has been called. Refer Subsystem details for details.

Sample Response

{
"message": "App updated successfully",
"status": "OK",
"subSystem": 2
}

Response Status Information

Status CodeStatusMessage
200OKApp updated successfully
400BAD_REQUESTApp name should not be null or empty
401UnauthorizedHTTP 401 Unauthorized
404APP_NOT_FOUND_STATUSApp does not exist