code: def create_page(name, parent_id, space, content):
      
      data = {}
      data["type"] = "page"
      data["title"] = name
      data["ancestors"] = [{"id": str(parent_id)}]
      data["space"] = {"key": space}
      data["body"] = {"storage": {"value": content, "representation": "storage"}}
      return _api.rest("/", "POST", _json.dumps(data))
docs: Create a page in Confluence.
      Parameters:
      - name: name of the Confluence page to create.
      - parent_id: ID of the intended parent of the page.
      - space: key of the space where the page will be created.
      - content: XHTML content to be written to the page.
      Notes: the page id can be obtained by getting ["id"] from the returned JSON.