def change_aliases(self, commands):
body = {'<STR_LIT>': [{command: dict(index=index, alias=alias, **params)}<EOL>for (command, index, alias, params) in commands]}<EOL>return self.conn._send_request('<STR_LIT:POST>', "<STR_LIT>", body)<EOL>
Change the aliases stored.
(See :ref:`es-guide-reference-api-admin-indices-aliases`)

:param commands: is a list of 3-tuples; (command, index, alias), where
                 `command` is one of "add" or "remove", and `index` and
                 `alias` are the index and alias to add or remove.