Scala: Write value to typesafe config object
If you want to change the loaded config (i.e. create a new config based on the old one), you can use withValue: val newConfig = oldConfig.withValue(“something.another.anotherconfig”, ConfigValueFactory.fromAnyRef(456))