---
title: "UpdateBasketArticlesOptions"
slug: "api/basket/types/updatebasketarticlesoptions"
sidebar:
  order: 306
---

<a id="ref-d63a178e0737"></a>
<a id="ref-771b07287fba"></a>
<a id="ref-05add9614219"></a>

## Synopsis

```text
struct UpdateBasketArticleOptions : ItemSelectionOptions {
    boolean update;
    boolean migrate;
    boolean recalculate;
    date priceDate
}
```

See also: [`ItemSelectionOptions`](/pCon/configuratorOnline/specs/api/basket/types/itemselectionoptions#ref-96d714d65dbc), `date` *(unresolved source reference)*

This type extends the type [ItemSelectionOptions](/pCon/configuratorOnline/specs/api/basket/types/itemselectionoptions). Additional optional boolean attributes are `update` and migrate. These attributes can be used to control whether or not the operation should update and/or migrate articles, or just determine the update state.

If the attribute `recalculate` is set to true, the calculations of selected article items not updated or migrated are recalculated. The calculations of updated or migrated article items are always recalculated. Recalculation includes execution of access methods. Note that, actually, the updateBasketArticles (§[updateBasketArticles](/pCon/configuratorOnline/specs/api/basket/operations/updatebasketarticles#ref-bbf41821bbac)) operation just invalidates the calculations. Recalculation happens on demand the next time affected calculation data is requested.)

Selection of article items for recalculation, updated or migrate works as followign: if one or more articles of a composite article have been selected, the behavior depends on whether or not the main article is among the selected articles, and (if not), whether or not the `wholeComposite` flag is set. In any case, either all articles of a composite article are recalculated, migrated or updated, or none.

The default value of `update` is true, whereas the default value of `migrate` and recalculate is `false`.

If `migrate` is true and a former OFML meta type is now a simple article without the `CompositeArticle` interface, migration can silently remove its existing basket sub-articles. See the article-type migration notes in [updateBasketArticles](/pCon/configuratorOnline/specs/api/basket/operations/updatebasketarticles).
