def rename_experiment(self, new_name):
        '''Renames the experiment.

        Parameters
        ----------

        See also
        --------
        :func:`tmserver.api.experiment.update_experiment`
        :class:`tmlib.models.experiment.ExperimentReference`
        '''
        logger.info('rename experiment "%s"', self.experiment_name)
        content = {'name': new_name}
        url = self._build_api_url(
            '/experiments/{experiment_id}'.format(
                experiment_id=self._experiment_id
            )
        )
        res = self._session.put(url, json=content)
        res.raise_for_status()
        self.experiment_name = new_name
Renames the experiment.

        Parameters
        ----------

        See also
        --------
        :func:`tmserver.api.experiment.update_experiment`
        :class:`tmlib.models.experiment.ExperimentReference`