<!--
{
  "availability" : [
    "iOS: 16.4.0 -",
    "iPadOS: 16.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "StoreKit",
  "identifier" : "/documentation/StoreKit/Product/PromotionInfo/updateAll(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "StoreKit"
    ],
    "preciseIdentifier" : "s:8StoreKit7ProductV13PromotionInfoV9updateAllyyxYaKSlRzAE7ElementRtzlFZ"
  },
  "title" : "updateAll(_:)"
}
-->

# updateAll(_:)

Sets the order and visibility of all the promoted products and saves your changes.

```
static func updateAll(_ promotions: some Collection<Product.PromotionInfo>) async throws
```

## Parameters

`promotions`

A collection of [`Product.PromotionInfo`](/documentation/StoreKit/Product/PromotionInfo) objects that you list in the order they are to appear in the App Store on the user’s device. Use an empty collection to cancel previous changes.

## Discussion

Call this static method to set the order of promoted Apple In-App Purchases for the user. Calling this method overrides any previous order and visibility that you set for this user.

To remove a promoted Apple In-App Purchase so it doesn’t display for a user, there are two options:

- Don’t include it in the `promotions` collection.
- Change its [`visibility`](/documentation/StoreKit/Product/PromotionInfo/visibility-swift.property) value to [`Product.PromotionInfo.Visibility.hidden`](/documentation/StoreKit/Product/PromotionInfo/Visibility-swift.enum/hidden).

To set the order of promoted Apple In-App Purchases using product identifiers instead of [`Product.PromotionInfo`](/documentation/StoreKit/Product/PromotionInfo) objects, see [`updateProductOrder(byID:)`](/documentation/StoreKit/Product/PromotionInfo/updateProductOrder(byID:)).

### Cancel overrides

To cancel the order and visibility changes you make, send an empty collection in `promotions`. All Apple In-App Purchases then display in the default order.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)