Renames an acquisition.

        Parameters
        ----------
        plate_name: str
            name of the parent plate
        name: str
            name of the acquisition that should be renamed
        new_name: str
            name that should be given to the acquisition

        See also
        --------
        :func:`tmserver.api.acquisition.update_acquisition`
        :class:`tmlib.models.acquisition.Acquisition`

def rename_acquisition(self, plate_name, name, new_name):
        '''Renames an acquisition.

        Parameters
        ----------
        plate_name: str
            name of the parent plate
        name: str
            name of the acquisition that should be renamed
        new_name: str
            name that should be given to the acquisition

        See also
        --------
        :func:`tmserver.api.acquisition.update_acquisition`
        :class:`tmlib.models.acquisition.Acquisition`
        '''
        logger.info(
            'rename acquisistion "%s" of experiment "%s", plate "%s"',
            name, self.experiment_name, plate_name
        )
        content = {'name': new_name}
        acquisition_id = self._get_acquisition_id(plate_name, name)
        url = self._build_api_url(
            '/experiments/{experiment_id}/acquisitions/{acquisition_id}'.format(
                experiment_id=self._experiment_id, acquisition_id=acquisition_id
            )
        )
        res = self._session.put(url, json=content)
        res.raise_for_status()