Skip to main content Skip to complementary content

Partially updating simple type fields of multiple data records

Availability-noteDeprecated

Request body

To update the values of simple type fields (Name, Description and Price in this example) in the three Product data records, send the following update information in the request body:

<records>
  <Product>
    <Id>1</Id>
    <Name>The first book</Name>
    <Description>Harry Potter and the Philosopher’s Stone</Description>
    <Price>111</Price>
  </Product>
  <Product>
    <Id>2</Id>
    <Name>The second book</Name>
    <Description>Harry Potter and the Chamber of Secrets</Description>
    <Price>222</Price>
  </Product>
  <Product>
    <Id>3</Id>
    <Name>The third book</Name>
    <Description>Harry Potter and the Prisoner of Azkaban</Description>
    <Price>333</Price>
  </Product>
</records>

Results

After the successful mass partial update, the updated records should look like the following:

<Product>
  <Id>1</Id>
  <Name>The first book</Name>
  <Description>Harry Potter and the Philosopher’s Stone</Description>
  <Features>
    <Sizes/>
    <Colors/>
  </Features>
  <Price>111.00</Price>
  <Stores/>
</Product>
<Product>
  <Id>2</Id>
  <Name>The second book</Name>
  <Description>Harry Potter and the Chamber of Secrets</Description>
  <Features>
    <Sizes/>
    <Colors/>
  </Features>
  <Price>222.00</Price>
  <Stores/>
</Product>
<Product>
  <Id>3</Id>
    <Name>The third book</Name>
    <Description>Harry Potter and the Prisoner of Azkaban</Description>
    <Features>
    <Sizes>
      <Size>Large</Size>
      <Size>X-Large</Size>
    </Sizes>
    <Colors>
      <Color>Light Pink</Color>
    </Colors>
  </Features>
  <Price>333.00</Price>
  <Stores/>
</Product>

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!