def create_page(name, parent_id, space, content):
data = {}<EOL>data["<STR_LIT:type>"] = "<STR_LIT>"<EOL>data["<STR_LIT:title>"] = name<EOL>data["<STR_LIT>"] = [{"<STR_LIT:id>": str(parent_id)}]<EOL>data["<STR_LIT>"] = {"<STR_LIT:key>": space}<EOL>data["<STR_LIT:body>"] = {"<STR_LIT>": {"<STR_LIT:value>": content, "<STR_LIT>": "<STR_LIT>"}}<EOL>return _api.rest("<STR_LIT:/>", "<STR_LIT:POST>", _json.dumps(data))<EOL>
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.