Revert "Revert "Metodo retornar config e atualizar""

This reverts commit 995975d89ff8e9aa0d8d93fdeac24e8b34662444.