title: How do you update sub-document in cosmos db
body: <p>I am new to Cosmos Db and want to understand how to delete/upsert sub-documents within a document collection.</p>
  
  <p>If i have a document:</p>
  
  <p><code>
  {
    "Id": "1234",
    "Name": "foo",
    "Items": [
      {
        "Id": "abcd",
        "Age": 35,
        "Claims": [
          {
            "Name": "email",
            "Value": "foo@bar.com"
          }
        ]
      }
    ]
  }
  </code></p>
  
  <p>How do i:</p>
  
  <p>1) add an item to the Items list in the document.</p>
  
  <p>2) delete the existing Item from the Items list</p>
  
  <p>3) upsert item to the items list in the document</p>
  
  <p>4) add/delete a claim value to existing item in items list?</p>
  
  <p>Thanks in advance. </p>