Any endpoint could update synonyms files for es cluster

Is there any API in es for updating synonyms files or any plan to provide such API interface?

API caller only provide synonyms content list, API could update synonyms file on each ES cluster nodes and return update result for the caller.