def media_pin(self, media_pk: str, revert: bool = False):
        """
        Pin post to user profile

        Parameters
        ----------
        media_pk: str
        revert: bool, optional
            Unpin when True

        Returns
        -------
        bool
        A boolean value
        """
        data = self.with_action_data({"post_id": media_pk, "_uuid": self.uuid})
        name = "unpin" if revert else "pin"

        result = self.private_request(f"users/{name}_timeline_media/", data)
        return result["status"] == "ok"

        Pin post to user profile

        Parameters
        ----------
        media_pk: str
        revert: bool, optional
            Unpin when True

        Returns
        -------
        bool
        A boolean value
        
instagrapi/mixins/media.py