title: Issue Updating Confluence Page with Python and API
body: <p>I am working on updating a Confluence page via python and the Confluence API.  </p>
  
  <p>I have found a function to write the data to the my page, unfortunately it creates a new page with my data and the old page becomes an archived version.  </p>
  
  <p>I have been searching the reference material and cannot see the reason I am getting a new page instead of appending the data to the end of the page.  The only solution I can think of is to copy the body and append the new data to it, then create the new page ... but I am thinking there should be a way to append.  </p>
  
  <p>The write function code I found / am leveraging is as follows :</p>
  
  <pre><code>def write_data(auth, html, pageid, title = None):
  
  
      info = get_page_info(auth, pageid)
      print ("after get page info")
      ver = int(info['version']['number']) + 1
  
      ancestors = get_page_ancestors(auth, pageid)
  
      anc = ancestors[-1]
      del anc['_links']
      del anc['_expandable']
      del anc['extensions']
  
      if title is not None:
          info['title'] = title
  
      data = {
          'id' : str(pageid),
          'type' : 'page',
          'title' : info['title'],
          'version' : {'number' : ver},
          'ancestors' : [anc],
          'body'  : {
              'storage' :
              {
                  'representation' : 'storage',
                  'value' : str(html),
              }
          }
      }
  
      data = json.dumps(data)
      pprint (data)
      url = '{base}/{pageid}'.format(base = BASE_URL, pageid = pageid)
  
      r = requests.put(
          url,
          data = data,
          auth = auth,
          headers = { 'Content-Type' : 'application/json' }
      )
  
      r.raise_for_status()
  </code></pre>
  
  <p>I am starting to think copying / appending to the body is the option, but hope someone else has encountered this issue.</p>