How can i change synonym settings according to the dynamic settings API?

how can i change synonym settings according to the dynamic settings API?