def update_or_create(self, parent_id, title, body):
        """
        Update page or create a page if it is not exists
        :param parent_id:
        :param title:
        :param body:
        :return:
        """
        space = self.get_page_space(parent_id)

        if self.page_exists(space, title):
            page_id = self.get_page_id(space, title)
            result = self.update_page(parent_id=parent_id, page_id=page_id, title=title, body=body)
        else:
            result = self.create_page(space=space, parent_id=parent_id, title=title, body=body)

        log.info('You may access your page at: {host}{url}'.format(host=self.url,
                                                                   url=result['_links']['tinyui']))
        return result