The update-properties RPC is used to update property values. If UniConfig Cloud Config is enabled, it also calls Refresh Bus Endpoint to update properties in runtime for all connected UniConfig instances.
The RPC only updates default properties, except for crypto properties for which there are separate RPCs (change-encryption-status and change-encryption-keys).
RPC sequence diagram with UniConfig Cloud Config enabled:
update-with-ucc
If UniConfig Cloud Config is disabled, the RPC only updates property values in the the database. The application instance continues to use the old property values, which can cause confusion.
Additionally, if a new UniConfig instance is started after properties have been updated, that instance will use the updated property values from the database. UniConfig instances will therefore use different values for the same property, as described in the diagram below.
We recommend that you use this RPC with UniConfig Cloud Config. The exception is callbacks.access-token, which is always up to date.
RPC sequence diagram with UniConfig Cloud Config disabled:
{"errors":{"error":[{"error-tag":"invalid-value","error-info":"For input string: \"true\"","error-message":"Integer property has invalid value true.","error-type":"rpc"}]}}
{"errors":{"error":[{"error-tag":"invalid-value","error-info":"The String did not match either specified value","error-message":"Boolean property has invalid value 1000.","error-type":"rpc"}]}}