def media_only_me(self, media_id, media_type, undo=False):
        """
        Archive/unarchive a media so that it is only viewable by the owner.

        :param media_id:
        :param media_type: One of :attr:`MediaTypes.PHOTO`, :attr:`MediaTypes.VIDEO`, or :attr:`MediaTypes.CAROUSEL`
        :param undo: bool

        :return:
            .. code-block:: javascript

                {"status": "ok"}
        """
        if media_type not in MediaTypes.ALL:
            raise ValueError('Invalid media type.')

        endpoint = 'media/{media_id!s}/{only_me!s}/'.format(**{
            'media_id': media_id,
            'only_me': 'only_me' if not undo else 'undo_only_me'
        })
        params = {'media_id': media_id}
        params.update(self.authenticated_params)
        res = self._call_api(endpoint, params=params, query={'media_type': media_type})
        return res

        Archive/unarchive a media so that it is only viewable by the owner.

        :param media_id:
        :param media_type: One of :attr:`MediaTypes.PHOTO`, :attr:`MediaTypes.VIDEO`, or :attr:`MediaTypes.CAROUSEL`
        :param undo: bool

        :return:
            .. code-block:: javascript

                {"status": "ok"}
        
instagram_private_api/endpoints/media.py