Skip to main content Skip to complementary content
Close announcements banner

Partially updating multi-occurrence fields of multiple data records

Availability-noteDeprecated

Request body

To update the values of multi-occurrence fields (Size and Color in this example) in two Product data records of Id 1 and Id 2, send the following update information in the request body:

<records>
  <Product>
    <Id>1</Id>
    <Features>
      <Sizes>
        <Size>Small</Size>
        <Size>Medium</Size>
      </Sizes>
      <Colors>
        <Color>White</Color>
        <Color>Light Blue</Color>
      </Colors>
    </Features>
  </Product>
  <Product>
    <Id>2</Id>
    <Features>
      <Sizes>
        <Size>Small</Size>
      </Sizes>
      <Colors>
        <Color>Lemon</Color>
      </Colors>
    </Features>
  </Product>
</records>

Results

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

<Product>
  <Id>1</Id>
  <Name>Book</Name>
  <Description>Harry</Description>
  <Features>
    <Sizes>
      <Size>Small</Size>
      <Size>Medium</Size>
    </Sizes>
    <Colors>
      <Color>White</Color>
      <Color>Light Blue</Color>
    </Colors>
  </Features>
  <Price>10.00</Price>
  <Stores/>
</Product>
<Product>
  <Id>2</Id>
  <Name>Book</Name>
  <Description>Harry Potter</Description>
  <Features>
    <Sizes>
      <Size>Small</Size>
    </Sizes>
    <Colors>
      <Color>Lemon</Color>
    </Colors>
  </Features>
  <Price>20.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 – let us know how we can improve!