code: def edit_page(id, name, space, content):
      
      data = {}
      data["id"] = str(id)
      data["type"] = "page"
      data["title"] = name
      data["space"] = {"key": space}
      data["body"] = {"storage": {"value": content, "representation": "storage"}}
      data["version"] = {"number": 1}
  
      response = _api.rest("/" + str(id), "PUT", _json.dumps(data))
      new_version = int(_json.loads(response)["message"].split()[-1]) + 1
      data["version"]["number"] = new_version
  
      return _api.rest("/" + str(id), "PUT", _json.dumps(data))
docs: Update a page in Confluence.
      Parameters:
      - id: ID of the page you wish to edit.
      - name: name you would like to give to the page (usually the same name).
      - space: space where the page lives.
      - content: XHTML content to be written to the page.
      Notes: it is required to try an initial update to find the page version.