Use the Preference Service API to change an application preference after you deploy an application. This lets you adjust application configuration at runtime without creating and deploying a new version of the application.
Update an application preference to change its value at runtime without updating and redeploying the application. Use the Create/Save preference operation in the Application Preference API:
PUT /v1/application-preferences/{preferenceKey}
The operation saves the value for the specified preference key. If the key already exists, the new value overrides its current value. If the key does not exist, a preference with that key is created.
New process instances use the application preference configuration available when the process starts.
Note: Updating an application preference does not change the
default value defined for the preference in Studio. The API-managed value is used as
the runtime value.