title: Cosmos DB: Move data from one container to another container in the same database
body: <p>In cosmos db i have two containers</p>
  <ol>
  <li>Subscriptions</li>
  <li>UserSubscriptions</li>
  </ol>
  <p>I want to move items from <strong>Subscriptions</strong> container to <strong>UserSubscription</strong> container but while moving <strong>Subscriptions</strong> document should convert into UserSubscriptions's document structure.</p>
  <p>Is there a way to achive this process?</p>
  <p>Any comments or suggestions would be greatly appricated.</p>
  <p>Subscriptions json sample:</p>
  <pre><code>{
      
      &quot;id&quot;: &quot;d18e4605-8bac-4bae-95d7-990703033a50&quot;,
      &quot;isActive&quot;: true,
      &quot;distributionUserIds&quot;: [
          &quot;27039a11-9ace-4748-a65e-f463a9e7ef11&quot;
      ],
      &quot;PayerNumber&quot;: &quot;0000000005&quot;,
      &quot;AccountNumber&quot;: &quot;0000000005&quot;,
      &quot;_rid&quot;: &quot;4XYVAOblmAIBAAAAAAAAAA==&quot;,
      &quot;_self&quot;: &quot;dbs/4XYVAA==/colls/4XYVAOblmAI=/docs/4XYVAOblmAIBAAAAAAAAAA==/&quot;,
      &quot;_etag&quot;: &quot;\&quot;00000000-0000-0000-91a9-b9eef09501d6\&quot;&quot;,
      &quot;_attachments&quot;: &quot;attachments/&quot;,
      &quot;_ts&quot;: 1600866120
  }
  </code></pre>
  <p>UserSubscription json sample:</p>
  <pre><code>{
      &quot;id&quot;: &quot;d18e4605-8bac-4bae-95d7-990703033a50&quot;,
      &quot;UUID&quot;: &quot;27039a11-9ace-4748-a65e-f463a9e7ef11&quot;,
      &quot;Type&quot;: &quot;Accounts&quot;,
      &quot;Payers&quot;: [
          {
              &quot;PayerNumber&quot;: &quot;0000000005&quot;,
              &quot;Accounts&quot;: [
                  &quot;0000000005&quot;
              ]
          }
      ],
      &quot;_rid&quot;: &quot;C7VEAMxad9UkAAAAAAAAAA==&quot;,
      &quot;_self&quot;: &quot;dbs/C7VEAA==/colls/C7VEAMxad9U=/docs/C7VEAMxad9UkAAAAAAAAAA==/&quot;,
      &quot;_etag&quot;: &quot;\&quot;00000000-0000-0000-2d10-3d41429f01d7\&quot;&quot;,
      &quot;_attachments&quot;: &quot;attachments/&quot;,
      &quot;_ts&quot;: 1617952580
  }
  </code></pre>